mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
B2014 与圆相关的计算
R53230420
This commit is contained in:
parent
76418f4188
commit
66eb0168ba
14
Luogu/problem/B2014/B2014.cpp
Normal file
14
Luogu/problem/B2014/B2014.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user