#include <iostream>
int main()
{
int x;
while( cin >> x ) {
if( x%400 == 0 ) {
cout << "閏年" << endl;
}
else if( x%100 == 0 ) {
cout << "平年" << endl;
}
else if( x%4 == 0 ) {
cout << "閏年" << endl;
}
else if( x%4 != 0 ) {
cout << "平年" << endl;
}
}
return 0;
}
之前是用scanf("%d %d",&x,&y)!= EOF 的方式
換成cin后不知道要怎麼中斷了