Handling floating points

Правка en1, от BrendonSlash, 2016-04-07 13:17:07

For this problem http://codeforces.com/problemset/problem/492/B. I've used a binary search approach to get a solution. However, I'm getting an incorrect result in the floating points for the answer. How can I overcome this.

This is my solution http://codeforces.com/contest/492/submission/17201833

Теги binary search, floating-point, c++

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский BrendonSlash 2016-04-07 13:17:07 324 Initial revision (published)