#include <stdio.h> #define N 13 int main() { int month[N]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int y,m,d,i,sum=0; while(scanf("%d/%d/%d",&y,&m,&d)!=EOF) { for( i=0; i<m; i++ ) { sum=sum+month[i]; } sum=sum+d; printf("%d\n",sum); sum=0; } if( y%4==0 && (y%100!=0||y%400==0) ); { sum++; printf("%d\n",sum); } return 0; } 求救大佬,就是答案错误0