#7531: 請問各位為甚麼輸出短少??


x110618 (峻)


#include <iostream>
using namespace std;
int main(){
int y;
cin>>y;
if(y%400==0||(y%4==0&&y%100!=0)) 
cout<<"閏年";
else
cout<<"平年";
return 0;
}
#7534: Re:請問各位為甚麼輸出短少??


akira0331 (小迷糊)


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

因為輸入不止1筆,有多筆