#3696: 一直不過!


coolmanddddd (=_=凸)


#include <iostream>
using namespace std;
int main()
{   int m;
       while(cin>>m)
       {
       if(m%4==0)
       cout<<"閏年"<<endl;
       else
       cout<<"平年"<<endl;
       }
    return 0;
}

#3697: Re:一直不過!


linishan (L)


#include
using namespace std;
int main()
{   int m;
       while(cin>>m)
       {
       if(m%4==0)
       cout<<"閏年"<
       else
       cout<<"平年"<
       }
    return 0;
}


你認為你的判斷式有符合定義嗎 ?

西元年被4整除且不被100整除,或被400整除者即為閏年」

你只判斷是否會被4整除 其他exceptions都沒判斷到