Created
October 1, 2012 07:44
-
-
Save Leko/3810153 to your computer and use it in GitHub Desktop.
tset js
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
function Main(inp) { | |
inp = inp.split("\n"); | |
i = inp[0]; | |
if ( i%4==0 && i%100!=0 || i%400==0 ) console.log("YES"); | |
else console.log("NO"); | |
} | |
Main(require("fs").readFileSync("/dev/stdin", "utf8")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
コメントテスト