WA on today's contest — problem B

Правка en2, от kowalsk1, 2018-07-09 21:04:22

I submitted the following solution for today's B during the contest: http://codeforces.net/contest/1005/submission/40132469 But even later when i saw the test case, i couldn´t figure out what i did wrong, cause i think my logic is correct. Can someone explain why is my algorithm failing? Are there any corner cases in this problem?

Thanks in advance, have a great day.

Теги #contest, #problem b, #wronganswer

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский kowalsk1 2018-07-09 21:05:25 6 Tiny change: 'ission/40132469\nBut even' -> 'ission/40123027\nBut even'
en2 Английский kowalsk1 2018-07-09 21:04:22 55
en1 Английский kowalsk1 2018-07-09 21:03:03 381 Initial revision (published)