HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Epoka Science Olympiad 2013-2015 > problem:


2015-10Gr-10. 50308 - IT Knowledge Seminars

Epoka Science Olympiad 2013-2015

Start: May.18.2013 at 10:00:00 AM
Finish: May.18.2013 at 03:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (4)

Contest problems

• 2014-10Gr-40. 50429 - Secret Message
• 2014-11Gr-10. 50430 - ATM
• 2014-11Gr-20. 50420 - Teachers Si...
• 2014-11Gr-30. 50431 - Sultan's Game
• 2015-09Gr-10. 50344 - Profit or Loss
• 2015-09Gr-20. 50725 - Fibonacci Se...
• 2015-09Gr-30. 50302 - Paper Sciss...
• 2015-09Gr-40. 50303 - Pattern
• 2015-10Gr-10. 50308 - IT Know...
• 2015-10Gr-40. 50322 - Snake Pattern
• 2015-11Gr-10. 50304 - Number Pattern
• 2015-11Gr-20. 50305 - John's Tasks
• 2015-11Gr-30. 50306 - Beautiful N...
• 2015-11Gr-40. 50307 - Palindromes
• 6-P2. 50882 - Say Hello

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.
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