宣传
  • 板块灌水区
  • 楼主QoQ_
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/11/1 21:22
  • 上次更新2024/11/1 21:24:21
查看原帖
宣传
1233308
QoQ_楼主2024/11/1 21:22

https://www.luogu.com.cn/contest/210367

再附一个qz,不然等一下被举报了

#include<stdio.h>
#include <math.h>
using namespace std;
int main(){
	int a = 1;
	float h, r, v, b;
	scanf("%f %f", &h, &r);
	r = r / 100;
	h = h / 100;
	v = pow(r, 2) * 3.14 * h*1.0;
	b = v;
	while (b < 0.02)
	{
		b = b + v;
		a++;
	}
	printf("%d", a);
	return 0;
}

题目,为什么92分

2024/11/1 21:22
加载中...