leap year by dplusplus

while 1:y=input();print y,'is%s a leap year.'%' not'[:4*(y%4or(not y%100and(y%100or y%400)))]

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top