题解:巴什博弈,2^k+1=3N或2^k2=3N,所以3N为P-position,3N+r为N-position。
1
2
3
4
5
6 |
#include <cstdio> int main(){ int
n; while (~ scanf ( "%d" ,&n)){ if (n%3==0) puts ( "Cici" ); else
puts ( "Kiki" );} return
0; } |
HDU 1847 Good Luck in CET-4 Everybody!,布布扣,bubuko.com
HDU 1847 Good Luck in CET-4 Everybody!
原文:http://www.cnblogs.com/forever97/p/3676322.html