Do you hate geometry?

3.7

3 votes
Easy
Problem

A special quadrilateral is inscribed in a circle. The speciality about this quadrilateral is that one of its diagonals is the diameter of the circle. Look at the image for better understanding.

You are given the length of radius of the circle and any two opposote sides of the quadrilateral, i.e either AB&CD or BC&AD

Output the area of the quadrilateral correct upto two decimal digits.

Circle Image

Input Format

  • The first and only lines contain three integers the length of radius R and the opposite sides of the quadrilateral and B

Output Format

  • Print the area of the quadrilateral with exactly 2 decimal places.

Note: Print exactly 2 decimal places or else you will get wrong answer verdict.

Also, scan the numbers as INTEGERS and not floating points and use DOUBLE for calculations and output as this can lead to precision errors.

Constraints

1A,B<2R10000

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

You guys are pretty good at geometry so you don't need an explanation right? :)

Editor Image

?