Task
Time limit:
1000 ms,
Memory limit:
256 Mb
The butler Beylivik decided to buy an apartment. To buy an apartment, he needs to get a mortgage. He knows that he needs a loan the size of
\(R\) coins. Beylivik wants to determine the overpayment at a known interest rate
\(P\%\) per year and the period of
\(M\) months for which a mortgage is taken. Payment is made monthly. Mortgage payments - annuity.
Input: three numbers are sent to the program input, each from a new line - loan size - integer
\(R (0 < R < 5*10^6)\), annual interest rate - real number
\(P (0 < P <= 15)\) and crediting period (in months) - integer
\(M ( 0 < M <= 300)\)
Output: output one number - the amount of overpayment by the end of the loan term
Example
№ |
Input |
Output |
1 |
5000
5
12 |
136.45 |
Prohibited statements:if;for;while;until