跳到正文

剪贴板

剪贴板 xpz2etfg

原文
剪贴板信息

剪贴板信息

收录
更新

富强 民主 文明 和谐

自由 平等 公正 法治

爱国 敬业 诚信 友善

奇迹和魔法都是存在的啊!

ღゝ◡╹)ノ❀ 送花花!

hitori chan

dp又不会,Tarjan还学废

字符串写不出,树剖模板背不下

平衡树只能无旋(pbds)

线段树不会合并

网络流不会建模

构造构不出

思路写不到

不会写题

我自裁

切题警示:

每个都是由至少一个小时以上的无用调试得出的惨痛教训

  1. 用递归注意写法,不要爆栈空间。

  2. 写线段树一定要注意范围,开 4 到 8 倍,原序列别开。

  3. 写 manacher 一定要注意范围,开2到3倍。

  4. 写树剖时函数里要搞清楚到底是要用线段树位置还是原位置。

  5. 最大子段和更改时( such as GSS7 )不要把原左端&右端带入运算。

  6. 带有边权转点权的树链剖分要看清楚题目询问/修改的是边还是点之间。

  7. 仔细辨认各个 OJ 的 freopen 要求!!!!

  8. 不要给自己的函数加奇奇怪怪的剪枝,大多时候要以正确性为首要目标!

  9. 多组不清空,爆零见祖宗;多组错清空,爆零见祖宗。

  10. 想清楚是反向建边还是正向,确定不了就直接搞无向。

  11. 主席树如果只是单纯copy就不用特意写函数了,左/右节点=对应左/右节点。

  12. 主席树通通空间开 N*25 以上。

  13. 平衡树要加上正负无穷两个节点防止越界。

  14. 二分图 vis 不清空,抱灵见祖宗

  15. 遇到字符串慎用 getchar( )。

  16. 牢记:非零即为真,正负都为真!

  17. 网络流,同一个图,要更换源点汇点多次求会导致原图变成残流网络,要把流量补回去!

  18. 网络流变边为点,边连点时要注意是开 N 的空间还是 N + M 的空间!

  19. 搞清楚题目要不要去重!!!

  20. 认真读题。

  21. 搞清楚函数要传的参数!

  22. 不要把 m 打成 n 。

  23. 不要把 i 打成 j,不要把 j 打成 i。

  24. 给堆(包括 STL 和 PBDS )赋值是 O(nlogn) 的。

  25. 贪心优化别乱贪,贪错爆零两行泪。

  26. WQS 二分认清楚到底哪个是最终答案。

  27. 优先队列要把弹出写在调用后。

  28. 状压最低位判断是 x>=0 不是 x>0。

  29. 不要把 1e9+9 打成 1e9+7,反之亦然。

  30. 线段树 pushdown 的时候要注意左右区间的长度有时候其实并不相等。

  31. 使用 set 千万注意判断 end()!

  32. 不要把 y1 打成 y2,x1 打成 x2,反之亦然。

  33. 要求四舍五入到整数不要使用 printf 或者浮点数比较偷懒,老实写乘 10 除后和 5 比,再除 10 输出。

  34. 全局变量一定不能冲突了!!!

一枚高二 OIer

关于我

带走你想要的那颗星吧带走你想要的那颗星吧 お持ちなさい あなたの望んだその星をお持ちなさい あなたの望んだその星を And it shall be bestowed upon you, the star which you have longed for—— \text{And it shall be bestowed upon you, the star which you have longed for—— }

莫言放弃,莫失希望,以坚定的步伐前进\color{white}{莫言放弃,莫失希望,以坚定的步伐前进}

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福音

\color{gold}{My}$$\color{pink}{Bilibili}

最拉初赛

网络流详解

祭


各种链接






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

VERGIL