1. 程式人生 > >第八屆ACM趣味程式設計競賽第四場(正式賽)A B C

第八屆ACM趣味程式設計競賽第四場(正式賽)A B C

Yitong_Qin and Xiaoyu_Chen are playing a game.There are $N$ stones placed on the ground,forming a sequence.

Thr stones are labeled from 1 to N. Yitong_Qin and Xiaoyu_Chen in turns take exactly two consecutive stones on the ground 

until there are no consecutive stones on the ground.That is,each player can take stone $i$ and stone $i+1$,

where $1 \leq i \leq n-1$.If the number of stones left is odd,Yitong_Qin wins ,so Xiaoyu_Chen has to dance.

Otherwise Xiaoyu_Chen wins Yitong_Qin has to dance.