Lab6 - CEN/ECE/SWE |
Старт: 07.ноя.2023 в 00:20:01
Финиш: 14.ноя.2023 в 23:20:01
Турнир завершён!
• Турнирная таблица
|
|
Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Show the total cost to pay for a money transfer.
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 |
Для отправки решений необходимо выполнить вход.
|