Skip to content

Instantly share code, notes, and snippets.

@joemmanuel
Last active December 23, 2015 06:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joemmanuel/6596821 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(){
int year,casos;
scanf("%ld",&casos);
while(casos>0){
scanf("%ld",&year);
if (((year % 4)==0) && ((year % 100)!=0 || (year % 400)==0))
printf("S\n");
else
printf("N\n");
casos--;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment