杭电2005
#include <stdio.h>int main (void){int y,m,d,s,i,a[]={31,28,31,30,31,30,31,31,30,31,30,31};while(scanf("%d/%d/%d",&y,&m,&d)!=EOF){s=0;for(i=1;i<m;i++)s+=a[i-1];if(((0==y%4 && 0!=y%100) || 0==y%400) && m>2)s+=1;printf("%d\n",s+d);}return 0;}
补充:软件开发 , C语言 ,