0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-09 23:38:47 +00:00

B2014 与圆相关的计算

R53230420
This commit is contained in:
Baoshuo Ren 2021-07-15 19:12:52 +08:00 committed by Baoshuo Ren
parent 76418f4188
commit 66eb0168ba
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,14 @@
#include <bits/stdc++.h>
using namespace std;
const double pi = 3.14159;
int main() {
double r;
cin >> r;
cout << fixed << setprecision(4) << 2 * r << ' '
<< fixed << setprecision(4) << 2 * pi * r << ' '
<< fixed << setprecision(4) << pi * r * r << endl;
return 0;
}