strawhatdragon's blog

By strawhatdragon, history, 3 years ago, In English

Hi All

I am not able to see where the logic fails, any help?

https://codeforces.net/contest/1472/submission/120840001

Thanks

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

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

It's not x+=2 it's x *= 2 because every time you cut something in half you get double the elements. Eg. 2 Pieces of paper both cut in half become 4, not 6.

My Submission for Reference: 115127295