Easter by hinoe

main(y,g,x,n){for(y=2e3;x-23;printf("%02d %s, 0%d\n",~n%31+1,n/32?"APRIL":"MARCH",y))g=++y%19,n=y/100+1,x=3*n/4,n=(11*g+(8*n+5)/25-x+8)%30,n+=n-25?n==24:g>10,n-=n/24*30+51,n+=(5*y/4-x-n-5)%7;}

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

download

return to the top page