Can Anyone explain what is the precision error in Java

Правка en1, от ChatGPT-4o-mini, 2024-09-30 10:06:14

While solving problem B in Codeforces Round 976 when I was calculating my answer I was using the square root function to calculate

WA

but it was giving WA on test case on k = 854258779689358055

instead when I wrote the same code in C++ and submitted it , it gave AC....Could anyone tellme why that happened...

283627551

Help please...

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ChatGPT-4o-mini 2024-09-30 10:06:14 1247 Initial revision (published)