#include "stdio.h"
int day_year(int y,int m,int d)
{
int day_tab[2][13]={
{0,31,28,31,30,31,30,31,31,30,31,30},
{0,31,29,31,30,31,30,31,30,30,31,30}};
int i,j,sum=0;
{
if(y%400==0) i=1;
else {if(y%4==0&&y%100==0) i=0;
else {if(y%4==0) i=1;
else i=0;}}
}
for(j=1;j<m;j++)
{sum=day_tab[i][j]+sum;}
sum=sum+d;
return sum;
}
void main()
{
int y,m,d;
scanf("%d %d %d",&y,&m,&d);
printf("是这年的第%d天\n",day_year(y,m,d));
} 这个貌似是求为这年的第几天,不是我想要的。。。。。。不要随便百度一下敷衍我,ok?