Need help in a problem

Revision en2, by Help_Needed_, 2021-08-12 23:42:36

Given n piles of stones, and there are only 2 kinds of move.

  • Remove non-zero number of stones from one of the pile
  • Divide one of the pile into 2 piles(not necessarily equal), and remove stone from one of the two newly formed piles.

Two players are playing this game, who will win?

Constraints: 1 <= sum of stones in all the piles <= 10^5

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Help_Needed_ 2021-08-12 23:42:36 52
en1 English Help_Needed_ 2021-08-12 23:41:42 325 Initial revision (published)