#include<iostream>
#include<algorithm>
#include<string>
#include<iomanip>
using namespace std;
int main(){
int a,sum=0,sum1=0;
for(int i=1;i<=12;i++){
cin>>a;
sum+=300;
sum=sum-a;
if(sum<0){
cout<<"-"<<i<<endl;
return 0;
}
sum1=sum1+sum/100*100;
sum=sum-sum/100*100;
}
cout<<sum+sum1*1.2<<endl;
return 0;
}
我先发一下正确答案,题解正在加载中......