Блог пользователя codefresher

Автор codefresher, история, 5 лет назад, По-английски

I am getting WA in test case 49....Can anyone help me what's wrong in my logic??? Here is my code---- https://codeforces.com/contest/769/submission/49667223 Help me plz-----

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
Test

Sometimes it's wrong to just repeat the first half of the way with opposite moves to get the second half.