题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1847
这题3是一个必败点,当只剩3张牌时对手只能拿1或2,那就一定能拿到最后的牌。
#include<iostream>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
if(n%3==0)
cout<<"Cici"<<endl;
else
cout<<"Kiki"<<endl;
}
return 0;
}