princeladdak's blog

By princeladdak, 11 years ago, In English

can anybody please tell me that why my last submission of problem b in good bye 2013 is wrong answer but in submission it is matching for test case link http://codeforces.me/contest/379/submission/5584330

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

»
11 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Delete line ans = '\0' the code will pass pretest 1, however it will get TLE!

»
11 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Because of ans='\0';