Pages

Saturday, July 30, 2011

d072: 文文的求婚--續集 (Case 版)


#include

using namespace std;

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

No comments:

Post a Comment