Pages

Saturday, July 30, 2011

d069: 文文的求婚--續集 (n 行版)


#include
using namespace std;

int main() {
int num,y;
cin>>num;
for(int i=0;i {
cin>>y;
if( (y%4==0 && y%100!=0 )|| y%400==0)
cout<<"a leap year"< else cout<<"a normal year"< }
return 0;
}

No comments:

Post a Comment