浅浅发下(课后第三题)

#include <iostream>
using namespace std;
int main(){
	int base,above,total;
	cin>>base>>above>>total;
	int t=0;
	if(base/3<above){
		t=(total/base)*3;
		t+=(total%base)/above;
	}else if(base/3>above){
		t+=3;
		total-=base;
		t+=total/above;
	}
	cout<<t<<endl;
}




2 个赞

额——

2 个赞

礼尚往来

2 个赞

666

2 个赞

:rofl:你是被他收买了吧

2 个赞

https://discourse.xinyoudui.com/t/topic/3982?u=吴易璐

1 个赞