Parallel binary search (Solar lamps) | IOI preparation #5

I'm showing a solution for Solar lamps, problem from POI. The technique is called parallel binary search. I didn't remember that and used a name "divide and conquer over queries" in the video. And you need some geometry too. Problem link: https://szkopul.edu.pl/problemset/pro... Codeforces blog with solution for similar problem (Meteors): https://codeforces.com/blog/entry/45578 Frequently Asked Questions: https://github.com/Errichto/youtube/w... Github repository: https://github.com/Errichto/youtube Facebook:   / errichto   Twitter:   / errichto   Competitive Programming Discord: https://discordapp.com/invite/UzaURu7 Youtube channel 1:    / errichto   (mainly short videos) Youtube channel 2:    / errichto2   (streams) I’m Kamil Dębowski, better known as Errichto. I compete in and organize programming competitions. I make educational streams on Youtube and Twitch. I'm a finalist of ACM-ICPC, Topcoder Open, Facebook Hacker Cup and Google Code Jam. I got a second place in Google Code Jam 2018. I am/was nutella in Codeforces and target in Topcoder. Watch me if you want to practice for coding interviews, competitive programming or just algorithms in general. I share my thought process, explain everything, and mention similar problems and techniques/algorithms.