| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66904 | 胡海峰老师 | 今年的第几天 | Python3 | Wrong Answer | 27 MS | 3784 KB | 437 | 2024-03-11 15:14:11 |
days =[31,28,31,30,31,30,31,31,30,31,30,31] def is_leap_year(year): if year%400==0: return True if year%4!=0 and year %100==0: return True return False def days_of_this_year(y,m,d): global days if is_leap_year(y): days [1]+=1 days = sum( days[:m-1]) + d return days year,month,day = list(map(int,input().split())) res = days_of_this_year(year,month,day) print(res)
------Input------
1236 3 31
------Answer-----
91
------Your output-----
90