different output in vs code and codeforces

Правка en2, от 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?

Теги precision error, unexpected output

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский VaishCodes 2025-06-06 15:37:01 0 (published)
en1 Английский VaishCodes 2025-06-06 15:36:35 332 Initial revision (saved to drafts)