sachyadon's blog

By sachyadon, history, 9 years ago, In English

submission 14466949 for 599 B http://mirror.codeforces.com/contest/599/submission/14467218 Why I am getting wrong answer. Please explain

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

Doesn't the second for (int i = 0 ; i < n ; i++) should be for (int i = 0 ; i < m ; i++)?

I changed it to i < m and got passed test case 3, but TLE on test case 6.

Good luck on debugging~