#include<stdio.h>
main(){
int year,month,day,i=0;
printf("please input year month day:\n");
scanf("%d %d %d",&year,&month,&day);
switch(month-1) {
case 11: i=i+30;
case 10: i=i+31;
case 9: i=i+30;
case 8: i=i+31;
case 7: i=i+31;
case 6: i=i+30;
case 5: i=i+31;
case 4: i=i+30;
case 3: i=i+31;
case 2: if((year%400==0)||(year%4==0)&&(year%100!=0)) i=i+29;
else i=i+28;
case 1: i=i+31; }
i=i+day;
printf("i=%d\n",i);
getch();}