Run ID:66904

提交时间: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)