HDU4355 https://blog.csdn.net/hxc2101/article/details/81607571https://blog.csdn.net/hxc2101/article/details/81607571 根据求的是最大值还是最小值,边界更新的情况不同。