哪里出问题了
查看原帖
哪里出问题了
581000
liyanhao2021楼主2021/11/12 17:07
#include<iostream>
using namespace std;
int main(){
	int a,b,c=300,e;
	double d;
	for(e=1;e<13;e++){
		cin >>a;
		if(c-a>=0){
			while(c-a>=100){
				c=c-100;
				d=d+100;
			}
			c=c-a;
			c=c+300;
	    }else{
	    	cout<<e*-1;
	    	return 0;
		}
	}
	cout <<d*1.2;
	return 0;
}
```cpp
2021/11/12 17:07
加载中...