0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 13:56:26 +00:00

B2029 大象喝水

https://www.luogu.com.cn/record/88083047
This commit is contained in:
Baoshuo Ren 2022-10-01 15:11:15 +08:00
parent bcb6761f4d
commit 713d5e6156
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

21
Luogu/B2029/B2029.cpp Normal file
View File

@ -0,0 +1,21 @@
#include <iostream>
#include <cmath>
using std::cin;
using std::cout;
const char endl = '\n';
const double pi = acos(-1);
int h, r;
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> h >> r;
cout << ceil(20000.0 / (pi * r * r * h)) << endl;
return 0;
}