Square Root function gives 4 decimal places precision only?

Правка en1, от guest666, 2020-03-27 01:12:39

Hello there. I have experienced an unexpected problem when calculating square root of a function. I used sqrtl(number+EPS) and I expected it to pass system testing in today's problem B. My equation was a quadratic equation and it should've passed. 74435525 this is my submission. I've found that the sqrtl() only calculated to 4 decimal places precision. I expected it to be more precised. I am not sure why the precision was very inaccurate?(In the hack, I got wrong answer due to precision error). I googled my problem before asking here. I also used __float128 in custom invocation tab with 64 bit C++ with my custom square root function using binary search and still, it wasn't accurate. The testcase that made me fail:

1

36000 600000000

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский guest666 2020-03-27 01:12:39 833 Initial revision (published)