摘要: 短路 显然可以得出一个结论,一个数字大的点肯定要到一个数字比他小的点,这个我们可以用单调栈维护出来比一个点小的第一个点,然后 \(dp\) 即可 #include <bits/stdc++.h> using namespace std; #define int long long const int 阅读全文
posted @ 2024-10-09 10:31 libohan0518 阅读(1) 评论(0) 推荐(0) 编辑