跳到正文

liujianchong

945877

CSP-J/S 2026 RP += inf || 期中考试 RP += inf || 宣:https://vjudge.net/group/lucky3

这是 2026年11月3日 存档的第 2 版,不是当前版本。查看当前版本

资料、奖项与版本

True nobility lies in being superior to your former self.

8.3 已红名
8.9:

你已经在洛谷连续打卡了 365 天

我rp不够用了!!!!!!

一堆模板

增强 rp

Python
while True:liujianchong_rp+=1

快读快写

C++
inline int read(){
    char c=getchar();
    int x=0,f=1;
    while(c<'0'||c>'9'){
		if(c=='-')f=-1;
		c=getchar();
	}
    while(c>='0'&&c<='9'){
		x=x*10+c-'0';
		c=getchar();
	}
    return x*f;
}
inline void write(int x){
    if(x<0){
		x=~(x-1);
		putchar('-');
	}
    if(x>9)write(x/10);
    putchar(x%10+'0');
}
我曾经的个人介绍

主页图


警钟长鸣:Did you #define int long long?

没开 long long,我丢过 6060 分,你丢过吗?

正文

本内容已经缩减,除最下面的祝你一路AC以外最好不要放图片。和文字太不搭了。
有时你可以点击链接查看对应图片。为了美化直观感受和缩减内容,使用链接代表图片。

写题解注意事项Warnings of Solution Creating\quad\text{Warnings of Solution Creating}

这都是我亲自踩过的坑,经验绝对没错

空格问题 About the Spaces\quad\text{ About the Spaces}

注意了:【英文】和【中文、数字或公式】中间要加空格,但是遇到【中文标点符号】不要加空格。

动态Statuses\quad\text{Statuses}

2025.9.22\text{2025.9.22}已绿名
2025.9.20\text{2025.9.20}运势:宜参加CSP(祝RP++)

快捷方式Links\quad\text{Links}
团队Teams\quad\text{Teams}
AIArtificial Intelligence\text{AI}\quad\text{Artificial Intelligence}
OJOnline Judge\text{OJ}\quad\text{Online Judge}
其他Others\quad\text{Others}
考试勿用Don’t use in exams\quad\text{Don't use in exams}

要解除禁U盘的话,大概率的方法就是管理员cmd输入sc stop TDFileFilter

注意事项Warnings\quad\text{Warnings}
开快读Read Faster\quad\text{Read Faster}
C++
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);

然后就不能用endl/printf/scanf了
要是专门用printf/scanf的话,当我没说。 要还是不够快的话(题目中一般会提示:请使用较快的输入输出。),就直接上这个重点的。

C++
inline int read() {  
    char c = getchar();
    int x = 0, f = 1;
    while (c < '0' || c > '9') {
		if (c == '-') {
			f = -1;
		}
		c = getchar();
	}
    while (c >= '0' && c <= '9') {
		x = x * 10 + c - '0';
		c = getchar();
	}
    return x * f;
}

inline void write(int x) {
    if (x < 0) {
		x = ~(x - 1);
		putchar('-');
	}
    if (x > 9) {
		write(x / 10);
	}
    putchar(x % 10 + '0');
}
编译命令Compiling Commands\quad\text{Compiling Commands}

Linux:g++ xxx.cpp -o xxx
Windows: g++ xxx.cpp -o xxx.exe
后面配上考卷里的编译命令就 OK!
其中xxx、xxx.exe是可执行文件名。
标准:可以用-std=c++14编译命令来使用C++14标准。

不会了看这里之:一堆算法Algorithms\quad\text{Algorithms}

最后一次更新:并查集
编辑时间:2025/09/17
添加时间:2025/09/18

不断更新中,随学随更
至于你会看到“书”“Book”这种东西这件事,要是不加说明的话,应该指的是深入浅出

  1. SPFA
  2. Dijkstra
  3. 链式前向星
  4. 并查集
  5. 线性筛(仅代码),附提交记录