Binary Search way to do this problem

Revision en1, by Virtual_Contestant, 2020-04-29 10:50:19

https://www.codechef.com/RC122020/problems/RECNDNUM This problem can obviously be solved using mathematical formula but i was wondering about the binary search approach to solve this. Any help would be really appreciated since I am having a lot of trouble with it. Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Virtual_Contestant 2020-04-29 10:50:19 308 Initial revision (published)