Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

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

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

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

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

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

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