Binary search on doubles

Правка en1, от NoPX, 2015-09-18 11:54:29

Let's say I have boundaries left and right, which are doubles and I want to do binary search. How long should I iterate to be sure that given error isn't too big.

For example, in the last contest there was a problem http://codeforces.com/contest/579/problem/E

I saw some codes and authors use 100, 200 etc iterations

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский NoPX 2015-09-18 11:54:29 346 Initial revision (published)