Submit | All submissions | Best solutions | Back to list |
HS08RBRT - Attractive Loan |
Once upon a time Robert took a bank loan. The interest rate, which appeared to be "one percent", looked extremely attractive. Unhappily, it turned out that he had not read the fine print of the contract carefully. The installments have to paid on each of 50 subsequent Mondays. This weekly payment consists of two parts: the so called capital part (paying back the original loan) and the interest part. The capital part is 2% of the loan amount, and the interest part is equal to 1% of the part of the loan amount which still remains to be paid. The resulting sum is rounded to full Euros (rounding is always up).
Compute the total sum that Robert will have to pay back.
Input
Positive integer 0 < X <= 100000 - the loan amount.
Output
The sum of all Robert payments.
Example 1
Input: 1 Output: 50
Example 2
Input: 1500 Output: 1905
Scoring
For solving this problem you will score 10 points.
Added by: | kuszi |
Date: | 2008-09-12 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: CLOJURE NODEJS PERL6 VB.NET |
Resource: | High School Programming League 2008/2009 |