We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I must note that my program may not be correct for larger numeric limits due to integer overflows, round-off errors, precision loss during conversion from float to int that you mentioned in your post. But within numeric limits given in the problem constraints, I believe, it should be correct though I didn't test it extensively.
Halloween Sale
You are viewing a single comment's thread. Return to all comments →
I must note that my program may not be correct for larger numeric limits due to integer overflows, round-off errors, precision loss during conversion from float to int that you mentioned in your post. But within numeric limits given in the problem constraints, I believe, it should be correct though I didn't test it extensively.