#2698: answer


1854322-7@g.puiching.edu.mo (陳子朗P5A25)

School : No School
ID : 3513
IP address : [192.168.120.33]
Last Login :
2025-10-20 19:16:08
a025. 文文的求婚--續集 (n 行版) | From: [192.168.120.33] | Post Date : 2025-10-16 20:25

#include <iostream>

using namespace std;

int main()

{

int HowManyTimes, Year;

cin >> HowManyTimes;

for (int i = 1; i <= HowManyTimes; i++)

{

cin >> Year;

if (Year % 4 == 0 && Year % 100 != 0 || Year % 400 == 0)

{

cout << "a leap year" << endl;

} else 

{

cout << "a normal year" << endl;

}

}

return 0;

}

 
ZeroJudge Forum