#include "stdio.h" struct Date { int year,month,day; }; main() { Date tem; scanf("%d %d %d",&tem.year,&tem.month,&tem.day); int daytab[2][12]= {{31,28,31,30,31,30,31,31,30,31,30,31}, {31,29,31,30,31,30,31,31,30,31,30,31}}; int r = 0; int i,R; if(tem.year%400==0 || (tem.year%4==0 && tem.year%100!=0)) R = 1; else R = 0; //如果是闰年,isR=1,否则isR=0 for(i=0;i