That's true, but there is no better way to do it, short of resorting to a higher-precision floating-point type.
You forgot for double inprecision, basicly floating-point arithmetic, not a good idea.
Thanks
Cool idea!
Just realized how you dealt with zero too - didn't think of that approach.
Hi, I did a new test with n=14: in the sample test is ok, but after in the submit it failed.
I falled in the same situations, but with test of 32000 correct!
Loading collection data...
That's true, but there is no better way to do it, short of resorting to a higher-precision floating-point type.
You forgot for double inprecision, basicly floating-point arithmetic, not a good idea.
Thanks
Cool idea!
Just realized how you dealt with zero too - didn't think of that approach.
Hi,
I did a new test with n=14: in the sample test is ok, but after in the submit it failed.
I falled in the same situations, but with test of 32000 correct!