|
|||||||||||||||||||
|
SPOJ time: 2012-02-22 22:35:08 |
InvestmentProblem code: HS11INV
Robert has decided to invest some of his savings. The unit of the investment fund he has chosen was worth X$ at the moment of purchase. Suppose that at the moment of withdrawal one unit cost Y$. Please calculate Robert's return on investment, assuming that a 4% fee has to be paid once, at the moment of withdrawal. InputThe first line contains the number X with two digits of precision, and the second line contains the number Y with two digits of precision. OutputOne number, being Robert's return on investment, displayed as a percentage, with two digits of precision. Example 1 Input: 100.00 120.00 Example 2 Input: 40.00 50.00 ScoringThis is a test problem and you will receive no points for solving it. However, at 18:00 on Monday, October 10, we will give out a small gift to a user, drawn from among those registered contestants who have solved this problem in more programming languages (available at SPOJ) then all other registered contestants. Note: the special contest is over now.
|
||||||||||||||||||
| |||||||||||||||||||