#15047: a004


ufve0704 (爬 我爬 我爬爬爬 有排行榜這種東西就是要爬 爬過我上面的那...)


#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main(int argc, char** argv){
int a;
while(cin>>a)
if(a%400==0||a%4==0&&a%100!=0)
cout<<"閏年"<<endl;
else
cout<<"平年"<<endl;
}

 

#15078: Re:a004


ufve0704 (爬 我爬 我爬爬爬 有排行榜這種東西就是要爬 爬過我上面的那...)


#include <iostream>
using namespace std; 
int main(int argc, char** argv){
int a;
while(cin>>a)
if(a%400==0||a%4==0&&a%100!=0)
cout<<"閏年"<<endl; 
else
cout<<"平年"<<endl;
}

//上一個我不小心加了無用的函數庫

//已修改