12 2020 档案
摘要:ST表 void build () { for (int i = 1; i <= n; i++) f[i][0] = a[i]...
阅读全文
摘要:明辨是非 造船 数据备份 括号 谜一样的牛 溜冰游戏 树网的核 圆桌骑士 和平委员会 矿场搭建 拦截导弹 Core树网的核 乒乓游戏...
阅读全文
摘要:csdn 0.前言 由于笔者翻阅了较多 b ...
阅读全文
摘要:1.压位(比较简单) const int up = 10; const int M = 1000; struct High { int c[up + 5]; void out () { int poi = up; while (poi >= 1 && c[poi] == 0) poi--; writ
阅读全文
摘要:1.普通 template T Max (T x, T y) { return x > y ? x : y; }template ...
阅读全文
摘要:1.树上倍增 #include <queue> #include <cstdio> using namespace std; const int MAXN = 1e5 + 5; const int MAXTEP = 45; int n, m; int depth[MAXN], f[MAXN][MAX
阅读全文
摘要:1.树上倍增 #include #include using namespace std;const int MAXN = 1e5 ...
阅读全文