摘要:
P4093 [HEOI2016/TJOI2016] 序列 不会写,褐的题解。 设 \(dp_i\) 表示以 \(i\) 结尾的最长子序列,维护就行了。 教员 #include <bits/stdc++.h> int N, M; int number[110000], min[110000], max 阅读全文
摘要:
2-SAT 考场的时候直接不考试去学了,板子还挺简单的。 SOV #include <bits/stdc++.h> int N, M; int cnt, head[2100000], next[4100000], to[4100000]; void AddEdge(int u, int v) { + 阅读全文