#837
Bronze III
HERMAN
스페셜 저지채점 준비중
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

The 19th century German mathematician Hermann Minkowski investigated a non-Euclidian geometry, called the taxicab geometry. In taxicab geometry the distance between two points T1(x1,y1)T_1(x_1, y_1) and T2(x2,y2)T_2(x_2, y_2) is defined as:

D(T1,T2)=x1x2+y1y2D(T_1, T_2) = |x_1 - x_2| + |y_1 - y_2|

All other definitions are the same as in Euclidian geometry, including that of a circle:

A circle is the set of all points in a plane at a fixed distance (the radius) from a fixed point (the centre of the circle).

We are interested in the difference of the areas of two circles with radius RR, one of which is in normal (Euclidian) geometry, and the other in taxicab geometry. The burden of solving this difficult problem has fallen onto you.

입력

The first and only line of input will contain the radius RR, an integer smaller than or equal to 1000010000.

출력

On the first line you should output the area of a circle with radius RR in normal (Euclidian) geometry. On the second line you should output the area of a circle with radius RR in taxicab geometry.

Note: Outputs within ±0.0001\pm 0.0001 of the official solution will be accepted.

예제 입력 1

1

예제 출력 1

3.141593
2.000000

예제 입력 2

21

예제 출력 2

1385.442360
882.000000

예제 입력 3

42

예제 출력 3

5541.769441
3528.000000
코드 제출

이 문제는 현재 제출할 수 없습니다.

이 현상이 잘못되었다고 생각될 경우 관리자한테 문의주세요.

내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze III1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.