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

Автор hawsgard, история, 23 месяца назад, По-английски

275A - Lights Out

In this problem, Codeforces compiler giving an output which is different from the output I got (which is matching to the output of the sample cases) and saying it's a wrong code. But, my code is actually giving the right output of the sample cases.

Here's my code: 171740686

Please, anybody can look into it, and point out where I am wrong.

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

»
23 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

in that part which you finding a sum you should check j-2 and j+2 and i-2 and i+2 too in addition "cin >> T;" is wrong