shivam_360's blog

By shivam_360, history, 18 months ago, In English

can anyone explain this why https://codeforces.com/contest/18/submission/172558206 this solution gets accepted while https://codeforces.com/contest/18/submission/172557506 this is giving wrong answer for problem https://codeforces.com/contest/18/problem/C

Isn't both the same thing??

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

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

Oh, finally.

The problem is in this line:

Spoiler

I think this test case will help you understand:

test case
  • »
    »
    18 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    oh...great observation... thanks, man!! I will remember this in the future...