摘要: 传送门 转化成 lis 后 n2 搞就行 ——代码 1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 5 int n, max, ans; 6 int f[10001]; 7 struct node 8 { 9 in 阅读全文
posted @ 2017-05-25 18:34 zht467 阅读(194) 评论(0) 推荐(0)
摘要: 传送门 只有第一个,第二个权限题。 分块,然而wa,没看出来错在哪里,有时间再看。 1 #include <cmath> 2 #include <cstdio> 3 #include <iostream> 4 #include <algorithm> 5 6 const int N = 10001, 阅读全文
posted @ 2017-05-25 16:57 zht467 阅读(126) 评论(0) 推荐(0)
摘要: 是时候结束这个局面了。。 说真的,有了模板一切都好说。 A+B 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 5 using namespace std; 6 7 const int MAXN = 10001; 8 阅读全文
posted @ 2017-05-25 08:01 zht467 阅读(185) 评论(0) 推荐(0)