different output in vs code and codeforces

Revision en2, by VaishCodes, 2025-06-06 15:37:01

problem statement: https://codeforces.me/contest/1886/problem/B

my entry: https://codeforces.me/contest/1886/submission/323127501

passed the 1st test case in vs code, printing correct output in vs code but output in code forces is either -0.000... or 0.000.... how can i avoid this?

Tags precision error, unexpected output

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English VaishCodes 2025-06-06 15:37:01 0 (published)
en1 English VaishCodes 2025-06-06 15:36:35 332 Initial revision (saved to drafts)