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

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


PE01. 51027 - Download Percentage

CEN109/111_2016_Questions

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

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

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

• HW1. 51055 - The competition
• HW2. 51056 - Welcome Picnic
• PE01. 51027 - Download Percen...
• 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

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

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

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

Download Percentage

Question: You are given the sizes of 3 items and their downloaded amounts. Find the one which has been downloaded the most and find the the percentage of the remaining.

Input specification: You will be first given 3 integer numbers, the total amounts of three files (at,bt,ct). On the next line, you will be given 3 other integers the amounts downloaded (ad,bd,cd). All the numbers are integers not greater than 10 million.

Output specification: Show two floating point numbers with two digits precision.

Sample Input
50 70 100
30 63 70
Sample Output
90.0 74.09

Explanation: The first file is totally 50KB and 30KB has been downloaded (60% of the file has been downloaded, The 90% of the second file and 70% of the third file has been downloaded). So, the second file has been downloaded the most with 90.0%. The total amount to download is (50+70+100) 220KB and 163 KB has been downloaded. Thus, 163/220 ⇒ 74.09% of all files has been downloaded.



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

www.contester.ru