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

Разделы > Геометрия > задача:


50854 - Area of Triangle Revised

Задачи раздела

• 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 - Distanca maksimale
• 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
• 50348 - Area and Perimeter of a Rec...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Area of Triangle Revised

Question: You are given the two sides and the inner angle of n-triangles. Find and show the total area and the area of the triangle which has the smallest area.

Input specification
You will be first given a number (n) the number of triangles. Then, in the following n lines you will be given two integers: the two sides of triangle (a and b). Then in the following n lines, you will be given the angle in degrees between the two given sides where 0 ≤ n ≤ 5000, and 0 ≤ angle ≤ 180 and 0 ≤ (a,b) ≤ 500.

Output specification:
Show two floating point numbers with 2 digits precision: total area of the triangles and the area of the triangle with the smallest area.

Sample Input I
5
20 32
13 16
5 51
4 30
4 6
45
20
40
90
30
Sample Output I
409.8 6.0

Explanation: The area of the first triangle (which is also the max area) is 226.274. The area of other triangles are: 35.570, 81.955, 60.0 and 6.0. And, the total area is 409.8.



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

www.contester.ru