GO Solution For UVa 10165 - Stone Game. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Jack and Jim are playing an interesting stone game. At the beginning of the game there are N pile(s) of stones. Each pile has Pi (i = 1..N , 1 ≤ Pi ≤ 2 ∗ 109) stones. They take turns to take away some of the stones. There are some rules: they must choose one pile at a time. They can take away any nu

...

You can find the full details of the problem Stone Game at UVa Online Judge

Sample Input

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

Sample Output

Yes
Yes
No

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985