这是你第10086次改名 edited 6 年,7 月前
int main()
{
int year,i,sc=420,sr=0,count=0;
scanf("%d",&year);
if(year==2001)printf("0 140 0");
else if(year==2002)printf("0 280 0");
else if(year==2003)printf("0 420 0");
else {for(i=2004;i<=year;i++){
sc=sc+140;
if((i%4==0&&i%100!=0)||i%400==0){
sr=sr+700;
count=count+1;
}}}
printf("%d %d %d\n",count,sc,sr);
return 0;
}