Pythonを利用してある年のある日を計算するのは何曜日ですか
#
# :w=y+[y/4]+[c/4]-2c+[26(m+1)/10]+d-1
import math
dict = {1: " ", 2: " ", 3: " ", 4: " ", 5: " ", 6: " ", 0: " "}
while 1:
y=int(input(" "))
m=int(input(" "))
d=int(input(" "))
if m==1 :
m=13
y=y-1
elif m==2:
m=14
y=y-1
allday=math.floor((y-1)+(y-1)/4-(y-1)/100+(y-1)/400+13*(m+1)/5+(m-1)*28-7+d)
x=allday%7
print(dict.get(x," "))