HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Lab6 - CEN/ECE/SWE > problem:


14-Fall1-60. 50482 - Bank Charges

Lab6 - CEN/ECE/SWE

Start: Nov.07.2023 at 12:20:01 AM
Finish: Nov.14.2023 at 11:20:01 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (2)

Contest problems

• 50879 - Passed or Failed
• 50341 - Separate Into Digits
• 50798 - Passing the course
• 50797 - Nr of Missing Guests
• 50355 - Bills of City Water Company
• 50478 - Letter Grades
• 14-Fall1-20. 50480 - What quadrant ...
• 14-Fall1-60. 50482 - Bank Char...
• 2012-11-10. 50568 - Body Mass In...
• 3. 50391 - Cinema Tickets

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.
Question by Meral Ari.

Bank Charges

Question:
Suppose you transfer $N and bank's charge occurs as follows:

  • Cost is $10, if N ≤500
  • Cost is $10+2% of N, if 500 < N < 1000
  • Cost is $10 + 1% of N, if 1000 ≤ N ≤ 3000
  • Maximum cost is 40$

Input specification
You will be given a floating point number (N) where 1 ≤ N ≤ 10000

Output specification
Show the total cost to pay. Use at most two precision digits after the floating point.

 Sample Input I     Sample Input II   
 300
 2000
 Sample Output I     Sample Output II   
 10
 30.00

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

www.contester.ru