摘要: #解析 通过画图分析不难得到:首先我们对其中一个河岸从小到大排序,然后在另一个河岸中求出最长上升自序列即可。为什么这么写呢?因为爱情 因为所有合法的答案都是一个单调上升队列。 #代码: #include #include using namespace std; struct river { int 阅读全文
posted @ 2021-04-22 19:59 24Kmagic 阅读(45) 评论(0) 推荐(0)