Require Help in Binary Search ( Problem C :-Fly)[Codeforces Round 499]

Revision en1, by sameer_hack, 2018-07-27 23:57:10

I tried to solve this question using Binary Search. And I am not able to understand why one of my solutions is giving me the wrong answer while other got accepted.
Problem Link
Submission 1 (Wrong)
Submission 2 (Accepted)
Submission 3 (Accepted)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sameer_hack 2018-07-27 23:57:10 578 Initial revision (published)