文章
21
粉丝
76
获赞
1
访问
13.7k
#include<stdio.h>
int days[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
int main(void){
int year,month,day,n;
scanf("%d",&n);
while(n--){
scanf("%d%d%d",&year,&month,&day);
days[2] = (year%4==0&&year%100!=0 || year%400==0)?29:28;
if((day+1)>days[month]){
month++;
day = 1;
if(month>12){
year++;
month%=12;
&nb...
登录后发布评论
暂无评论,来抢沙发