Compounding Interest II

Back to Topic List

aszaloki     2024-11-21 09:26:50

Hi Kevin!

Two minor issues about this problem: 1) The generated test input contains more lines than the first Q value. 2) There is some rounding issue in the expected answer. About 95% of my results are the same as expected, but a few differ slightly. I tried my code with double and decimal types as well (first one has larger range, second one is more precise). Failed to pass in both cases.

What do you suggest? Thanks!

admin (Kevin)     2024-11-21 18:40:19
User avatar

Hi Adam!

Looking through the checker code, it appears that I set up the problem to be accurate to 1e-3, but still checked for 1e-6 precision... Both the prompt and the checker should be set for 1e-3 precision now - let me know if you still have issues with that!

The Q value should be correct now as well :)

Thanks!

aszaloki     2024-11-23 07:49:42

Issues solved, thank you!

Please login and solve 5 problems to be able to post at forum