Game Theory problem ARRGM on Codechef

Revision en1, by TimberLee, 2016-06-03 18:16:19

Problem Link.

I've seen the public solutions but I am unable to understand them.

This is a game theory problem with Grundy Numbers but I am unable to break this game into smaller independent games in order to apply the Grundy theorem.

Can somebody please provide the solution with explanation ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English TimberLee 2016-06-03 22:45:45 13
en1 English TimberLee 2016-06-03 18:16:19 383 Initial revision (published)