Thursday, October 2, 2014

ACM 1639. Chocolate 2 / Шоколад 2

The only thing which we need to see that is for breaking the chocolate down into the pieces of 1x1 we will do the same amount of moves no matter how we cut it. If that number of moves is odd then the first on will cut the last piece and he will win otherwise the second one will win.


       FULL SOURCE CODE

No comments:

Post a Comment