看了这篇博客做的,讲的很详细http://hi.baidu.com/kerrynit/item/58907a41ef970e18e835045a
#include<cstdio> #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; }
看了这篇博客做的,讲的很详细http://hi.baidu.com/kerrynit/item/58907a41ef970e18e835045a
#include<cstdio> #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; }