Submit | All submissions | Best solutions | Back to list |
EIVCHR2 - Voucher 2 |
On Singles day, Hoa has a voucher which gives 30% discount (maximum 50 thousands VND) for a item. The discount will apply to one item only and doesn’t apply to whole bill . Hoa willing to buy N items at the store. How much does she need to pay?
Input
A single integer N (1 ≤ N ≤105) which is the number of items Hoa wants to buy.
The second line contains N integers which are prices of N items, correspondingly. The prices is not exceed 109.
Output
The amount of money Hoa need to spend on items.
Sample
Input |
Output |
5 100000 5000 2000 100000 200000 |
357000 |
Added by: | Ha Minh Ngoc |
Date: | 2020-11-17 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYPY3 PYTHON3 RUBY SQLITE SWIFT VB.NET |