大佬求助
查看原帖
大佬求助
1024631
Howells楼主2023/6/30 19:40
#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);
}

实在想不通哪里错了求助啊阿啊样例都不对啊

2023/6/30 19:40
加载中...