Day of the Week by REM

for(;s=readline();)print((x=(new Date((a=s.split(" "))[0],a[1]-1,a[2])-3)%7)<0?x+7:x)

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

download

return to the top page