Editorial for ICPC SWERC 2017 K - Blowing Candles
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
The narrowest strip touches points of the convex hull, of them being consecutive on the hull
- Compute and restrict to convex hull in
- Loop over all consecutive point pairs
- Maintain a point being furthest from in amortized time.
Comments