CJam, 12 bytes
rS+2m<~e|4%!
This full program read from STDIN and prints 1 for leap years and 0 otherwise.
Verify the test cases yourself in the CJam interpreter.
rS+2m<~e|4%!
This full program read from STDIN and prints 1 for leap years and 0 otherwise.
Verify the test cases yourself in the CJam interpreter.