#J0036. 石子游戏(初级)
石子游戏(初级)
的的现在有n颗石头a先取,b后取每次最多取2个,最少1个。
拿到最后一个的人赢
问 a能不能赢。能输出1,不能输出0; 0<n<25
Format
Samples
2
1
Limitation
1s, 1024KiB for each test case.
Related
In following contests:
的的现在有n颗石头a先取,b后取每次最多取2个,最少1个。
拿到最后一个的人赢
问 a能不能赢。能输出1,不能输出0; 0<n<25
2
1
1s, 1024KiB for each test case.
In following contests:
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.