From c10aad441a768b1b5b14a5f5e83e9d37194ce836 Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Wed, 15 Sep 2021 19:46:31 +0800 Subject: [PATCH] =?UTF-8?q?604.=20=E5=9C=86=E7=9A=84=E9=9D=A2=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/7741979/ --- AcWing/604/604.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 AcWing/604/604.cpp diff --git a/AcWing/604/604.cpp b/AcWing/604/604.cpp new file mode 100644 index 00000000..066d85a0 --- /dev/null +++ b/AcWing/604/604.cpp @@ -0,0 +1,12 @@ +#include + +using namespace std; + +const double pi = 3.14159; + +int main() { + double r; + cin >> r; + cout << "A=" << fixed << setprecision(4) << pi * r * r << endl; + return 0; +}