做不出来
  • 板块B2029 大象喝水
  • 楼主lzh009
  • 当前回复7
  • 已保存回复7
  • 发布时间2023/3/12 10:49
  • 上次更新2023/10/23 21:48:30
查看原帖
做不出来
952814
lzh009楼主2023/3/12 10:49

呜呜 ┭┮﹏┭┮ ~~ 最高20分 ~~

#include<cstdio>
#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
	int r,h,v,tong;
    int PI=3.14;
	cin>>h>>r;
	v=PI*r*r*h;
	if(20000%(int)v!=0)
	tong=20000/(int)v+1;
    else tong=20000/(int)v;
	cout<<tong;
	return 0;
}
2023/3/12 10:49
加载中...