#include <iostream> #include <cstdio> using namespace std; int daytable[2][13]={ {31,28,31,30,31,30,31,31,30,31,30,31}, {31,29,31,30,31,30,31,31,30,31,30,31} }; bool IsLeapYear(int year){ //判断是否是闰年 return (year%4==0 && year%100!=0) || (year%400==0); //如果是闰年返回1,否则...