/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
int year,month,day,sum=0;
scanf("%d-%d-%d",&year,&month,&day);
if(month<3)
{if((year==0&&year%100!=0)||year%4==0)
sum+=29;
else
sum+=28;}
if(month<2)
sum+=31;
if(month<12)
sum+=30;
if(month<11)
sum+=31;
if(month<2)
sum+=31;
if(month<10)
sum+=30;
if(month<2)
sum+=31;
if(month<9)
sum+=30;
if(month<2)
sum+=31;
if(month<8)
sum+=30;
if(month<2)
sum+=31;
if(month<7)
sum+=30;
if(month<2)
sum+=31;
if(month<6)
sum+=30;
if(month<2)
sum+=31;
if(month<5)
sum+=30;
if(month<2)
sum+=31;
if(month<4)
sum+=30;
sum=sum+day;
printf("%d",sum);
}
这个跑出来的结果是错误的,求大佬指教