Блог пользователя _kira_1008

Автор _kira_1008, история, 4 года назад, По-английски

link to my submission — https://codeforces.net/contest/463/submission/86461525 Basically I first calculated the sums of all the diagonals. Then through observations figured out that one bishop needs to be placed at row and column with even sum(let say white square) and other at the black square. So I thought the answer must be max of white sq sum+ max(black square sum) and then minus the square at which they both intersect. I can't figure out where this goes wrong

Полный текст и комментарии »

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится