HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


50482 - Bank Charges

Guest
• Review clarifications (2)

Volume problems

• 51038 - Simple interest
• 51041 - Plane Segmentation
• 51039 - Automated billing system
• 50310 - Kinetic Energy
• 50314 - Falling Distance
• El Clasico
• 50481 - Car Parking
• 50480 - What quadrant is it?
• 50482 - Bank Charges
• 50430 - ATM
• 50292 - Average of 4 Marks
• 50799 - OSHEE Electric Bill
• 51029 - Buy Three Items
• 51034 - Area of 3 Shapes
• 51032 - Triangle Property
• 51033 - Sum of the series
• 51027 - Download Percentage

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