leap year by Roy van Rijn

class h{public static void main(String[]_)throws Exception{int i=1,b;for(;i>(b=0);){for(;(i=System.in.read())>14;)b=(b*10)+i-48;if(i>0)System.out.print(b+" is "+(b%(b%50>0?4:16)>0?"not ":"")+"a leap year.\n");}}}

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

download

return to the top page