解题思路:
注意事项:
参考代码:
y,m,d = map(int,input().split())
m1 = [1,3,5,7,8,10,12]
m2 = [4,6,9,11]
s = 0
for i in range(1,m):
if i in m1:
s += 31
elif i in m2:
s += 30
else:
s += 28
s += d
if y%4 == 0 and y%100 != 0 or y%400 == 0:
if m>2:
s += 1
print(s)
0.0分
2 人评分