标签:
题目:
Description
Input
Output
Sample Input
Sample Output
1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 int m; 6 while(cin>>m) 7 { 8 int cnt; 9 for(int i=0;;i++) 10 { 11 cnt=m%((2<<i)+1); 12 if(cnt==0) 13 { 14 cout<<"Cici"<<endl; 15 break; 16 } 17 else if(cnt<((2<<i)+1)) 18 { 19 cout<<"Kiki"<<endl; 20 break; 21 } 22 else 23 { 24 continue; 25 } 26 } 27 } 28 return 0; 29 }
标签:
原文地址:http://www.cnblogs.com/forwin/p/4890386.html