hawsgard's blog

By hawsgard, history, 2 years ago, In English

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.

  • Vote: I like it
  • -2
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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