mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-11 22:06:27 +00:00
15 lines
304 B
C++
15 lines
304 B
C++
#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;
|
|
}
|