直到遥远尽头
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
和 在玩游戏。
Description
他们有 堆石子,第 堆石子有 个,保证初始时 。现在他们轮流对这些石子进行操作,每次操作人可以选择满足 ( 视为 )的一堆石子,并从中取走一个。谁最后不能取了谁输。cj 先手,他们都使用最优策略,请判断最后谁会取得胜利。
Input
第一行一个整数 ,表示石子堆数。
接下来一行 个数,第 个数为 ,意义如上所述。
Output
"" 或 "",表示谁会赢。
Samples
1
1
cj
Limitation
1s, 1024KiB for each test case.
2025新生第一次周赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2025-11-8 14:00
- End at
- 2025-11-8 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 30