HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Geometry > problem:


51034 - Area of 3 Shapes

Guest
• Review clarifications (4)

Section problems

• 50670 - Picture
• 50487 - Radius of Inscribed Circle
• 50480 - What quadrant is it?
• 50473 - Counting Circles Positions
• 50327 - Parallel Lines
• 50328 - How far away
• 50825 - Drawing Polygon
• 50508 - The Biggest Area
• 51034 - Area of 3 Shapes
• 50854 - Area of Triangle Revised
• 50669 - Area of an Irregular Polygon
• 50560 - Max Distance
• 50237 - Is it the same color?
• 50422 - Area and Perimeter of diffe...
• 50399 - Mobile Base Station
• 50397 - The Number of Points in a ...
• 50349 - Area of a Triangle

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

Area of 3 Shapes

Question: Read the information for three geometrical shapes, find the one with the largest area. You will be given the radius of a circle, base and height of a triangle and the two sides of a rectangle, Find the one with the greatest area.

Input specification: The information for each shape is given in a line.

  • the radius of a circle (rad): an integer,
  • base and height of a triangle: two integers,
  • two sides of a rectangle: two integers
where all the numbers are between 1 and 100 thousand.

Output specification: Show one floating number with two digits precision, the area of the largest object.

Sample Input I
11
60 19
50 43
Sample Input II
20
45 45
47 17
Sample Output I
2,150
Sample Output II
1,256.64

Explanation: for the first sample:

  • Area of the circle is: 380.13
  • Area of the triangle is: 570
  • Area of the rectangle is: 50 * 43 = 2,150
And thus, the largest area among the objects given is 2,150

Для отправки решений необходимо выполнить вход.

www.contester.ru