【文件属性】:
文件名称:杭电acm1099解题
文件大小:399B
文件格式:TXT
更新时间:2012-04-10 06:40:40
acm
#include
int main(){
int i,sum,year,month,day;
int monthday[]={31,28,31,30,31,30,31,31,30,31,30,31};
while(scanf("%d/%d/%d",&year,&month,&day)!=EOF){
for(i=0,sum=0;i 2&&(year%4==0&&year%100!=0)||year%400==0)sum++;
sum+=day;
printf("%d\n",sum);
}
return 0;