mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 13:56:26 +00:00
parent
bcb6761f4d
commit
713d5e6156
21
Luogu/B2029/B2029.cpp
Normal file
21
Luogu/B2029/B2029.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user