Limits 1s, 512 MB

Observe the following drawing:

You’re given the area of the circle centered at LL as in the image and a number that denotes the proportion of area of circles:

Proportion=Area(circle of center O)/Area(circle of center L)\text{Proportion} = \text{Area}(\text{circle of center O}) / \text{Area}(\text{circle of center L})

Write a program that will calculate the area of ABCDABCD quadrilateral and BPQBPQ triangle.

Input

Input contains only only two floating point number separated by a single space.

Constraints

You are to take double precision numbers as input.

Consider π=arccos(1)\pi = \text{arccos}(-1).

Output

Area of Triangle

Area of quadrilateral

Sample

InputOutput
314.15926535897932384626433832795 3.00
100
600

Submit

Login to submit.

Contributors

Statistics

71% Solution Ratio
sam4i40Earliest, Aug '19
sam4i40Fastest, 0.0s
tanimahossainLightest, 0 B
bokaifShortest, 71B
Toph uses cookies. By continuing you agree to our Cookie Policy.