codefresher's blog

By codefresher, history, 6 years ago, In English

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

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

| Write comment?
»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Test

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