3053번 택시 기하학
2023. 3. 31. 09:13
단계별로 풀어보기 - 기본 수학 2 - 10단계
https://www.acmicpc.net/problem/3053
#include <iostream>
#include <cmath>
#define PI 3.1415926535897932
using namespace std;
int main()
{
long double R;
cin>>R;
cout<<fixed;
cout.precision(6);
cout<<powl(R,2)*PI<<endl; // 유클리드 기하학
cout<<powl(R,2)*2<<endl; // 택시 기하학
return 0;
}
'BaekJoon' 카테고리의 다른 글
10872번 팩토리얼 (0) | 2023.03.31 |
---|---|
1002번 터렛 (0) | 2023.03.31 |
4153번 직각삼각형 (0) | 2023.03.31 |
3009번 네 번째 점 (0) | 2023.03.31 |
1085번 직사각형에서 탈출 (0) | 2023.03.31 |