Back to Problem Solutions forum
Can someone please tell me how the answer must be formatted?
According to the description "Results should have precision of 1e-7 = 0.0000001 or better!". But then, how comes that the example answer is "1 3 3.196" instead of "1 3 3.196005081874647" ?
When I check the results it looks like they are rounded, but the number of decimals vary from 9 to 11.
My result: 84.25556361919199 58.35174772672798 91.62968951164245 709.4174416114786 8.3666002653415 126.43470361673856 6.48074069840786 602.3656806559941 9.929693933132777 6.08276253029822 433.48576648786354 129
Expected result: 84.2555636192 58.3517477267 91.6296895116 709.417441611 8.36660026534 126.434703617 6.48074069841 602.365680656 9.92969393313 6.0827625303 433.485766488 129
I just printed 9 decimal places for each test case. I accept what you say about the example.
I can't see anything wrong with your answers and all I can suggest is to make sure you don't have any extra spaces or funny characters in your output.
I submitted the task again and is correct. I was testing agaisnt the exact expected values, my fault.
I am not sure what was wrong the first time but it is now solved.