三分即可。calc(x, y)函数求在点 $(x, y)$ 建造灯塔的最低高度。

时间复杂度 $O(n ^ 2 \times \texttt{某个大常数})$ 。

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×