Wrong answer on test 6 in problem 158A

Revision en2, by Akuver, 2019-12-30 20:32:52

I can't understand what is wrong with this piece of code of mine as a solution of the problem 158A: https://codeforces.com/contest/158/submission/67632208 Then I submitted this solution and it worked:

Please help me understand why the code that I submitted earlier fails.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Akuver 2019-12-30 20:33:35 54
en2 English Akuver 2019-12-30 20:32:52 835
en1 English Akuver 2019-12-30 09:20:43 1083 Initial revision (published)