我自己调试的时候输出是对的呀
[codec]#include <stdio.h>
int main()
{
int n,ye=0,a[12],k;
double save;
for(n=1;n<=12;n++)
{
scanf("%d",&a[n]);
k=ye+300-a[n];
if(k<0)
{
printf("-%d",n);return 0;
}
ye=k%100;
save=save+k-ye;
}
printf("%.0f",save*1.2+ye);
return 0;
}
[/codec]