Power towers solution
https://petr-mitrichev.blogspot.com/2019/06/power-towers-solution.html
ICPC NA North Central and South Division