#include"stdio.h"
//Java一个函数就可以解决的问题 /sad
int isrunnian(int year){
int check;
if((year%100==0&&year%4==0)||year%400==0){
check=1; //是闰年
}
else{
check=0; //不是闰年
}
return check;
}
int checkday(int year,int month){
int daynum;
switch(month){
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12: daynum=31; break;
case 4:
case 6:
case 9:
case 11: daynum=30; break;
case 2:
int check=isrunnian(year);
if(check==1){
daynum=29;