Is it precision error or something other?

Revision en1, by beethoven97, 2022-06-23 19:23:07

I know that this problem supposed to be a trivial problem , but I stay in it about 1 hour and i don't know why it get WA on test 3 about 10 times of submissions and i submitted the solution with python and c++ as i thought that WA is due to precision error but both of them didn't get accepted.
Any help please?

c++ code
python code


  Rev. Lang. By When Δ Comment
en1 English beethoven97 2022-06-23 19:23:07 1928 Initial revision (published)