Last active
February 14, 2016 10:03
-
-
Save TheoKlein/45249d0f8cfbaf14ed35 to your computer and use it in GitHub Desktop.
ZeroJudge_a004_C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main(){ | |
| int year; | |
| while(scanf("%d",&year)!= EOF){ | |
| if((year % 4 == 0) && (year % 100 != 0)) | |
| printf("閏年\n"); | |
| else if(year % 400 == 0) | |
| printf("閏年\n"); | |
| else | |
| printf("平年\n"); | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment