28分求条
查看原帖
28分求条
1047089
li_zhi_a_wei楼主2023/8/11 22:36
#include <iostream>
using namespace std;
int main(){
	int n=0;
	int k=0;
	int tiji=0;
	cin >>n;
	cin >>k;
	tiji=k*k*3.14*n; //计算桶能容纳的体积
	int shu=0;  //桶的数量统计
	while(shu*tiji<20000){
		shu++; 
	}
	cout <<shu;
	return 0;
}
2023/8/11 22:36
加载中...