HDU 5795 A Simple Nim(Nim游戏博弈+SG函数)
Problem DescriptionTwo players take turns picking candies from n heaps,the player who picks the last one will win the game.On each turn they can pick any number of candies which come from the same