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

Разделы > Арифметика > задача:


50308 - IT Knowledge Seminars

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

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

• 50248 - Power of two
• 50341 - Separate Into Digits
• 50335 - Five Math Operators
• 50408 - Molecules
• 50304 - Number Pattern
• 50305 - John's Tasks
• 50649 - Puzzle
• 50321 - Missing Number
• 50308 - IT Knowledge Seminars
• 50293 - Sum of odd numbers from ...
• 50401 - Sum of Odd Numbers
• 50365 - Sum of the numbers from a...
• 50390 - Total Salary Paid
• 50400 - nth Row rth Element of a Table
• 50292 - Average of 4 Marks
• 50462 - Class Average (3 Grades)
• 50439 - Telephone Calls

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared by Halil Karimis.

IT Knowledge Seminars

IT Knowledge is a small business that offers motivational seminars to local companies. Following figure shows the charge for attending a seminar.

Number of people a company registers
Charge per person ($)
1 - 3 $150
4 - 9 $100
10 or more $90

Notice that the charge per person depends on the number of people the company registers. For example, the cost for four registrants is $400; the cost for two registrants is $300. The program should allow the sales manager to enter the number of registrants for as many companies as needed. When the sales manager has finished entering the data, the program should calculate and display the total charge for those registrants with dollar sign ($).
For example, if there are two different companies and if one company registers four people and another company registers two people, the total charge is $700.

Input specification
-In the first line you will enter total number of companies.
-In the following line you will enter number of registrants from each company with a space in between them.

Output specification
Display the total charge for those registrants with dollar sign ($)

Sample Input I
2
4 2
Sample Input II
1
20
Sample Input III
3
2 5 10
Sample Output I
$700
Sample Output II
$1800
Sample Output III
$1700


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

www.contester.ru