#include<stdio.h> int main(0 { int dayNum,month,year,day; scanf("%d%d%d",&year,&month,&day); dayNum = 31(month - 1)+ day; if(是闰年) { dayNum=dayNum-((4*(month)+23)/10)+1; } else { dayNum=dayNum-((4*(month)+23)/10); } printf("天数为%d:",dayNum); return 0; }
y, m, d = map(int, raw_input('请输入3个整数, 用空格分隔:').split()) daynum=int(31*(m-1)+d) if(y%400==0 or y%2==0 and y%100==0): daynum=int(daynum-4*(m+23)//10+1) else: daynum=int(daynum-4*(m+23)//10) print("日期在第:%d天"%(daynum))