How to solve 1076C using binary search?

Revision en2, by ashiknur, 2019-06-19 07:59:13

I have checked the solution of many of the contestants of the first page. Everyone solved it using math. But, I want to solve it using binary search. I have been trying to do so for last few days but I am failed. Please, help me regarding this.1076C - Мемная задача

Update: solved


  Rev. Lang. By When Δ Comment
en2 English ashiknur 2019-06-19 07:59:13 18 Tiny change: 'lem:1076C]' -> 'lem:1076C]\n\nUpdate: solved'
en1 English ashiknur 2019-06-18 20:46:28 298 Initial revision (published)