UVa 10165

From Algorithmist
Jump to navigation Jump to search

10165 - Stone Game[edit]

Summary[edit]

The game that is played is called 'Nim'.

Explanation[edit]

Just read up on the game 'Nim' and do some 'xor'ing.

Input[edit]

1
100
3
1 5 1
4
1 1 1 1
0

Output[edit]

Yes
Yes
No