題目鏈接: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;
}