#1813: a025 answer


1753422-4@g.puiching.edu.mo (P5A30廖善衡)

School : No School
ID : 2950
IP address : [192.168.120.33]
Last Login :
2025-03-20 11:41:41
a025. 文文的求婚--續集 (n 行版) | From: [192.168.120.33] | Post Date : 2025-03-13 13:17

#include<iostream>
using namespace std;
int main(void)
{
  int n;
  while(cin>>n){
    int y[n];
    for(int i=0; i<n; ++i){
      cin>>y[i];
    }
    for(int i=0; i<n; ++i){
      if(y[i]%4==0 && y[i]%100!=0 || y[i]%400==0){
        cout<<"a leap year"<<endl;
      }
      else cout<<"a normal year"<<endl;
    }
  }
  return 0;
}
 
 
ZeroJudge Forum