Skip to content

Instantly share code, notes, and snippets.

@Leko
Created October 1, 2012 07:44
Show Gist options
  • Save Leko/3810153 to your computer and use it in GitHub Desktop.
Save Leko/3810153 to your computer and use it in GitHub Desktop.
tset js
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"));
@Leko
Copy link
Author

Leko commented Oct 1, 2012

コメントテスト

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment