SPOJ TEAMNIM hint needed

Revision en1, by MetB, 2019-12-06 19:28:43

https://www.spoj.com/problems/TEAMNIM/

Yet the most interesting part is when two players from the same team make turns after each other, what kinda reminds index-2 nim but without taking 1 stone from one heap. Probably with correct AABB — ordering it won't be hard to come up to a good BAAB one, since there should be some invariant. Any ideas/hints?

Tags #spoj, #game-theory

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English MetB 2019-12-06 19:28:43 386 Initial revision (published)