#10348: 不信你找的出錯


a3322776561 (unknown)


#include<iostream>

using namespace std;

int main(){

            int x;

            cin>>x;

            if((x%4==0&&x%100!=0)||x%400==0)

            cout<<"閏年";

            else

            cout<<"平年";

 

 

            return 0;

}

 

#10361: Re:不信你找的出錯


w80707 (「——究竟誰規定過,對妹妹的感情就不如戀情了?」ー 五河士道)


#include

using namespace std;

int main(){

            int x;

            cin>>x;

            if((x%4==0&&x%100!=0)||x%400==0)

            cout<<"閏年";

            else

            cout<<"平年";

 

 

            return 0;

}

 


while回圈+EOF