富强 民主 文明 和谐
自由 平等 公正 法治
爱国 敬业 诚信 友善
奇迹和魔法都是存在的啊!
ღゝ◡╹)ノ❀ 送花花!

dp又不会,Tarjan还学废
字符串写不出,树剖模板背不下
平衡树只能无旋(pbds)
线段树不会合并
网络流不会建模
构造构不出
思路写不到
不会写题
我自裁
切题警示:
每个都是由至少一个小时以上的无用调试得出的惨痛教训
-
用递归注意写法,不要爆栈空间。
-
写线段树一定要注意范围,开 4 到 8 倍,原序列别开。
-
写 manacher 一定要注意范围,开2到3倍。
-
写树剖时函数里要搞清楚到底是要用线段树位置还是原位置。
-
最大子段和更改时( such as GSS7 )不要把原左端&右端带入运算。
-
带有边权转点权的树链剖分要看清楚题目询问/修改的是边还是点之间。
-
仔细辨认各个 OJ 的 freopen 要求!!!!
-
不要给自己的函数加奇奇怪怪的剪枝,大多时候要以正确性为首要目标!
-
多组不清空,爆零见祖宗;多组错清空,爆零见祖宗。
-
想清楚是反向建边还是正向,确定不了就直接搞无向。
-
主席树如果只是单纯copy就不用特意写函数了,左/右节点=对应左/右节点。
-
主席树通通空间开 N*25 以上。
-
平衡树要加上正负无穷两个节点防止越界。
-
二分图 vis 不清空,抱灵见祖宗
-
遇到字符串慎用 getchar( )。
-
牢记:非零即为真,正负都为真!
-
网络流,同一个图,要更换源点汇点多次求会导致原图变成残流网络,要把流量补回去!
-
网络流变边为点,边连点时要注意是开 N 的空间还是 N + M 的空间!
-
搞清楚题目要不要去重!!!
-
认真读题。
-
搞清楚函数要传的参数!
-
不要把 m 打成 n 。
-
不要把 i 打成 j,不要把 j 打成 i。
-
给堆(包括 STL 和 PBDS )赋值是 O(nlogn) 的。
-
贪心优化别乱贪,贪错爆零两行泪。
-
WQS 二分认清楚到底哪个是最终答案。
-
优先队列要把弹出写在调用后。
-
状压最低位判断是 x>=0 不是 x>0。
-
不要把 1e9+9 打成 1e9+7,反之亦然。
-
线段树 pushdown 的时候要注意左右区间的长度有时候其实并不相等。
-
使用 set 千万注意判断 end()!
-
不要把 y1 打成 y2,x1 打成 x2,反之亦然。
-
要求四舍五入到整数不要使用 printf 或者浮点数比较偷懒,老实写乘 10 除后和 5 比,再除 10 输出。
-
全局变量一定不能冲突了!!!
一枚高二 OIer
关于我
带走你想要的那颗星吧
お持ちなさい あなたの望んだその星を
And it shall be bestowed upon you, the star which you have longed for——
莫言放弃,莫失希望,以坚定的步伐前进
C++#include<bits/stdc++.h>
#include<bits/extc++.h>
#define ll long long
#define ull unsigned long long
#define m_p make_pair
#define m_t make_tuple
using namespace std;
using namespace __gnu_pbds;
inline ll read(){
ll s=0,w=1;
char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();}
while(ch>='0'&&ch<='9')s=(s<<1)+(s<<3)+(ch^48),ch=getchar();
return s*w;
}
inline void print(ll ch){
if (ch<0)ch=-ch,putchar('-');
if (ch>9)print(ch/10);
putchar(ch%10+'0');
}
signed main()
{
//ios::sync_with_stdio(false);
//cin.tie(nullptr);
//cout.tie(nullptr);
return 0;
}
图论作图工具
pbds学习指南1
pbds学习指南2
STL&PBDS综合使用方法以及效率比对(防暴毙保存)
莫队学习指南
卡常导论
骗分导论2.0
OI 中常见的 dp 与递推问题的大致分类
VS Code 指南3
VS Code 指南2
VS Code 指南
网上几何画板
云剪贴版
10min mail of 互传 :laxesew447@klanze.com
传文件2
github下载加速
文件转换器
文件加速下载
NOI Q&A
ssd福音
最拉初赛
网络流详解
祭

各种链接
Immortal temptation takes over my mind
Condemned
Falling weak on my knees,summon the strength Of mayhem
I Am The Storm That Is Approaching
Provoking Black Clouds In Isolation
I am reclaimer of my name
Born in flames,I have been blessed
My family crest is a demon of death!
Forsakened,I am awakened
A phoenix′s ash in dark divine
Descending misery
Destiny chasing time
Inherit the nightmare,surrounded by fate
Can′t run away
Keep walking the line ,between the light
Led astray
Through vacant halls I won′t surrender
The truth revealed in eyes of ember
We fight through fire and ice forever
Two souls ,once lost,and now they remember
I am the storm that is approaching
Provoking black clouds in isolation
I am reclaimer of my name
Born in flames,I have been blessed
My family crest is a demon of death!
Forsakened,I am awakened
A phoenix′s ash in dark divine
Descending misery
Destiny chasing time
Disappear into the night
Lost shadows left behind
Obsession′s pulling me
Fading,I′ve come to take what′s mine!
Lurking in the shadows under veil of night
Constellations of blood pirouette,
dancing through the graves of those who stand at my feet
Dreams of the black throne I keep on repeat
A derelict of dark,summoned from the ashes
The puppet master congregates all the masses
Pulling strings,twisting minds as blades hit
You want this power?Then come try and take it
Beyond the tree
Fire burns
Secret love
Bloodline yearns
Dark minds embrace
Crimson joy
Does your dim heart
Heal or destroy?
Bury The Light Deep Within!
Cast Aside,There′s No Coming Home!
We′re Burning Chaos In The Wind!
Drifting In The Ocean All Alone!
