题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1847
思路:这道题本来不想写的 ,不过不是纯纯的博弈是一道找规律的题,不过这个规律需要用博弈去找,
如果你写了很多组数据你会发现如果n对3去模如果为0那么一定会赢
下面看代码吧:
#include<stdio.h>
#include<math.h>
int a[12];
int main()
{
int n;
while(~scanf("%d",&n))
{
if(n % 3 == 0)
printf("Cici\n");
else
printf("Kiki\n");
}
return 0;
}