intget_month_of_day(int y,int m){//把月份天数存入数组int days[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};//获取⽉份的天数int day = days[m];//根据年判断2月份具体天数if((y %4==0&& y %100!=0)||(y %400==0)){if(m ==2){
day +=1;}}return day;}intmain(){int y =0;int m =0;//输⼊scanf("%d %d",&y,&m);//获取y年m⽉的天数int ret =get_month_of_day(y, m);printf("%d\n", ret);return0;}