PROGRAMMING:Bank interest
###Task description
Farmer John made a lot of money last year! He wants to invest the money and is curious about how much he can get. The compound annual interest rate of known investment is R (an integer between 0 and 20). John now has money worth m (an integer between 100 and 1000000). He clearly knows that he will invest in y years (range 0 to 400). Please help him calculate how much money he will have in the end and output the integral part of it. The data guarantees that the output result is in the range of 32-bit signed integer.
###Input format:
One line contains three integers R, m and y, separated by a single space.
###Output format:
An integer, that is, how much money John will eventually have (the integral part).
###Input example:
```in
5 5000 4
```
###Output example:
```out
six thousand and seventy-seven
```
###Tips
```
In the example,
After the first year: 1.05 * 5000 = 5250
After the second year: 1.05 * 5250 = 5512.5
After the third year: 1.05 * 5512.50 = 5788.125
After the fourth year: 1.05 * 5788.125 = 6077.53125
The integral part of 6077.53125 is 6077.
```
Problem analysis:
According to the title description, first read the integer R, m, y, then multiply the fund year by year through y cycles (1 + R%), and finally output the integer part of the fund. Note that the input principal m is integer data, and the fund that changes year by year is real data.
###Title Source
Note: this topic is selected from openjudge website http://noi.openjudge.cn/ch0105/15/
answer:If there is no answer, please comment
Farmer John made a lot of money last year! He wants to invest the money and is curious about how much he can get. The compound annual interest rate of known investment is R (an integer between 0 and 20). John now has money worth m (an integer between 100 and 1000000). He clearly knows that he will invest in y years (range 0 to 400). Please help him calculate how much money he will have in the end and output the integral part of it. The data guarantees that the output result is in the range of 32-bit signed integer.
###Input format:
One line contains three integers R, m and y, separated by a single space.
###Output format:
An integer, that is, how much money John will eventually have (the integral part).
###Input example:
```in
5 5000 4
```
###Output example:
```out
six thousand and seventy-seven
```
###Tips
```
In the example,
After the first year: 1.05 * 5000 = 5250
After the second year: 1.05 * 5250 = 5512.5
After the third year: 1.05 * 5512.50 = 5788.125
After the fourth year: 1.05 * 5788.125 = 6077.53125
The integral part of 6077.53125 is 6077.
```
Problem analysis:
According to the title description, first read the integer R, m, y, then multiply the fund year by year through y cycles (1 + R%), and finally output the integer part of the fund. Note that the input principal m is integer data, and the fund that changes year by year is real data.
###Title Source
Note: this topic is selected from openjudge website http://noi.openjudge.cn/ch0105/15/
answer:If there is no answer, please comment