#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int input;
int *temp;
int i;
while(scanf("%d",&input)!=EOF)
{
temp = (int *) malloc(input*sizeof(int));
for(i=0;i<input;i++)
scanf("%d",&temp[i]);
for(i=0;i<input;i++)
{
if((( temp[i] % 4 == 0) && ( temp[i] % 100 != 0)) || ( temp[i] % 400 == 0))
printf("Case %d: a leap year\n",i+1);
else
printf("Case %d: a normal year\n",i+1);
}
free(temp);
}
return 0;
}
沒有留言:
張貼留言