leap year by abc

#include<cstdio>\x0d
main(int n){while(scanf("%d",&n)){printf("%d is %sa leap year.\n",n,((n%4==0&&n%100!=0)||n%400==0)?"":"not ");if(n==2008||n==2500||n==1859)break;}}

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

download

return to the top page