Hi,

  In the problem A Game With Number the example goes like this:

"Input
14

Output
1
4"

  That means that Nikifor wins and he makes the "master move" in the fourth turn. But what about this: the number is 14 and Nikifor is first to play. If I were Nikifor I would substract 4 so that number that's on the table is 10. Then Trofim has to play 1 so that number on the table would 9. Note that there isn't other move available for Trofim. So on I (being Nikifor) already win because I play 9 so that number remained is 0. 

   If I'm not mistaken there were only 3 turns in the game. How come the output in the example says "4".

To anyone who response
Thanks

  • created

    Apr '07
  • last reply

    Apr '07
  • 1

    reply

  • 523

    views

  • 2

    users

  • 1

    link