ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > CEN109/111_2016_Questions > задача:


PE08. 51034 - Area of 3 Shapes

CEN109/111_2016_Questions

Старт: 07.дек.2016 в 12:37:00
Финиш: 07.дек.2016 в 13:42:00
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (4)

Задачи турнира

• HW2. 51056 - Welcome Picnic
• PE01. 51027 - Download Percentage
• PE02. 51028 - Isosceles Triangles
• PE03. 51029 - Buy Three Items
• PE04. 51030 - Number of Right Tria...
• PE05. 51031 - Convert from Hex to...
• PE06. 51032 - Triangle Property
• PE07. 51033 - Sum of the series
• PE08. 51034 - Area of 3 Shapes
• PE09. 51040 - Annual profit
• PE10. 51041 - Plane Segmentation
• PE11. 51038 - Simple interest
• PE12. 51039 - Automated billing system
• RE1. 51077 - Grades Histogram
• RE2. 51078 - Max trade
• hw3. 51057 - Number of students
• hw4. 51058 - Third grade students

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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