Day of the Week by murky-satyr

for(;[y,m,d]=readline().split(' '),y-=f=m<3;print((d-c+y+(y>>2)+(c>>2)+2.6*(m|f*12)+1.6)%7|0))c=y/100|0

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

download

return to the top page