#B2615. Comparison of Bank Fixed Deposit Strategies
Comparison of Bank Fixed Deposit Strategies
Comparison of Bank Fixed Deposit Strategies
In this problem, there are two individuals, Little A and UIM, each starting with \(10000\) yuan. Little A chooses to deposit his money with a one-year fixed deposit at an annual interest rate of \(3.5\%\). Every year when the deposit matures, he reinvests the total (principal + interest) in a new one-year deposit until 5 years have passed.
On the other hand, UIM directly places his \(10000\) yuan in a five-year fixed deposit with an annual interest rate of \(4\%\) compounded over 5 years.
Your task is to calculate the amount of money each person will have after 5 years. The calculations are as follows:
- Little A's final amount: \(10000 \times (1.035)^5\)
- UIM's final amount: \(10000 \times (1.04)^5\)
Output the two values on one line, separated by a space, formatted to two decimal places.
inputFormat
This problem does not require any input. You should use the fixed values provided in the description.
outputFormat
Output two numbers separated by a space: the first number is the amount in Little A’s account after 5 years, and the second is the amount in UIM’s account after 5 years. Both values should be printed with exactly two decimal places.
sample
No input
11876.86 12166.53