#8817: 怎都輸入都閏年


herogoder (kwei)


#include <iostream>
 using namespace std; 
 int main() { 
 int s; 
 int c;
 int z;
 int a;
 while(cin >> s)
 { 
    c==s%4;
z==s%100;
    a==s%400;
    if (c==0 & z>0 & a==0)
    cout << "閏年" << endl; 
else
cout << "平年" <<  endl; 
 
 }  
 
 return 0; 
 
 }