### COCI 2006/2007, Contest #1

## Task HERMAN

The 19th century German mathematician Hermann Minkowski investigated a non-Euclidian
geometry, called the taxicab geometry. In taxicab geometry the distance between two points T_{1}(x_{1},
y_{1}) and T_{2}(x_{2}, y_{2}) is defined as:

*D(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 R, 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.

### Input

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

### Output

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

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

### Sample Tests

## Input1 ## Output3.141593 2.000000 |
## Input21 ## Output1385.442360 882.000000 |
## Input42 ## Output5541.769441 3528.000000 |

All Submissions

Best Solutions

**Point Value:** 5

**Time Limit:** 1.00s

**Memory Limit:** 32M

**Added:** Jan 13, 2009

**Languages Allowed:**

C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

## Comments (Search)

Simon_PEGon Jan 28, 2017 - 4:18:22 pm UTC Rounding problemspencereiron Jan 30, 2017 - 9:00:32 pm UTC Re: Rounding problemcout << fixed << setprecision(k) << ...

where k is the desired number of places after the decimal point.

competitivecoderon Dec 22, 2015 - 6:15:27 pm UTC Hint pleasejargonon Dec 22, 2015 - 9:21:16 pm UTC Re: Hint pleasevatsalsharma376on Jul 27, 2016 - 12:19:07 pm UTC Re: Hint pleaseAre of circle in Taxicab Geometry: r*r*2

Well, it was easy to find the pattern.