随笔分类 - A——记
摘要:以P1314为例 数据生成 #include <bits/stdc++.h> using namespace std; const long long a=1e8; int main(){ freopen("P1314.in","w",stdout); srand(time(0)); int n=r
阅读全文
摘要:重思考过程,怎么想出来的要解释清楚,而不只是简单的一个做法写在上面
阅读全文
摘要:注意事项 1.考虑初始化为 0 是否合理 ! 2.边缘代码也要看看 3.线段树要开 4倍 空间 4.倍增求lca 的循环要到 0 (i>=0) 5.bool operator <(const node &x)const 6.差分约束要建超级源点 7.网络流:(1)要重置for(int i=1;i<=
阅读全文