From 713d5e615687b933f11f5666d5928982c9fdd1a4 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 1 Oct 2022 15:11:15 +0800 Subject: [PATCH] =?UTF-8?q?B2029=20=E5=A4=A7=E8=B1=A1=E5=96=9D=E6=B0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.luogu.com.cn/record/88083047 --- Luogu/B2029/B2029.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Luogu/B2029/B2029.cpp diff --git a/Luogu/B2029/B2029.cpp b/Luogu/B2029/B2029.cpp new file mode 100644 index 00000000..58660205 --- /dev/null +++ b/Luogu/B2029/B2029.cpp @@ -0,0 +1,21 @@ +#include +#include + +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; +}