D - プレゼント Editorial by seekworser


\(N\) 個の箱を \(w\) の昇順、同じ \(w\) では \(h\) の降順にソートしたとき、\(h\) の列の LIS の長さが答えです。

posted:
last update: