Binary Search

Revision en1, by armyKid, 2016-05-08 00:53:20

https://www.codechef.com/MAY16/problems/FORESTGA

i tried many right limits !

left = 0; right = 1e18 + w ; with these limits WA for test case 14

and for left = 0; right = 1e18;

test case 8,12,14 gives WA

i cant understand why is this happening !!

as far as i know if i increase the limit it should affect my time complexity not the answer

i know contest is going on but i just wanted to know the reason for getting WA for different limits!

green tick motivates me !!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English armyKid 2016-05-08 00:53:20 508 Initial revision (published)