#34407: a002


yp11151172@yphs.tp.edu.tw (907-37陸思同)


#include<bits/stdc++.h>
using namespace std;
int main(){
    int year;
    while(cin>>year)
       if(year%4==0&&year%100!=0||year%400==0) cout<<"閏年"<<endl;
       else cout<<"平年"<<endl;
    return 0;
}

#34409: Re: a002


yp11151172@yphs.tp.edu.tw (907-37陸思同)


更改一下

include<iostream>

using namespace std;

int main()

{

int a,b,c;

cin>>a>>b;

c=a+b

cout<<c<<endl;

}

#34412: Re: a002


yp11151172@yphs.tp.edu.tw (907-37陸思同)


更改一下

include

using namespace std;

int main()

{

int a,b,c;

cin>>a>>b;

c=a+b

cout<

}

再更改一下

using namespace std;

int main()

{

int a,b,c;

cin>>a>>b;

c=a+b;

cout<<c<<endl;

}

#34413: Re: a002


yp11151172@yphs.tp.edu.tw (907-37陸思同)


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

再更改一下

using namespace std;

int main()

{

int a,b,c;

cin>>a>>b;

c=a+b;

cout<<c<<endl;

}