Programming/BaekJoon
[C++] 백준 3053번 : 택시 기하학
TCBE
2019. 2. 26. 14:34
https://www.acmicpc.net/problem/3053
#define _USE_MATH_DEFINES
#include <iostream>
#include <math.h>
using namespace std;
int main() {
cout.setf(ios::fixed);
cout.precision(6);
double n;
cin >> n;
cout << n*n*M_PI << "\n";
cout << 2*n*n ;
}