#include<bits/stdc++.h> using namespace std; int main(){ int i, a, b=0,c, total=0; for (i=1;i<=12;++i){ cin>>a; c=300+b-c; total+=(c/100*100); b=c%100; if (c<0) break; }if (c<0) cout<<0-i; else cout<<(total+total/5); }
实在想不通哪里错了求助啊阿啊样例都不对啊