[백준] 택시 기하학

jun·2021년 3월 28일
0
post-thumbnail

유의할점

유클리드 기하학 / 택시 기하학

풀이

택시 기하학에서의 원의 넓이는 2 R R이된다.

코드

C++


#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>

using namespace std;

int main() {
	double R;
	scanf("%lf", &R);
	printf("%.6lf\n%.6lf", (R * R * M_PI), (R * R * 2));
}
profile
Computer Science / Algorithm / Project / TIL

0개의 댓글