Kane's blog

By Kane, history, 7 years ago, translation, In English

I'm trying to solve problem Game of Cards from SWERC-2015.

I guess, that this game is equivalent to Nim game. I calculated the Sprague-Grandy value from every pile of cards and counted xor of them.

Unfortunately, my solution gets WA on 7 test.

Please, help me with this problem.

Code

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