跳到正文

LIXE_115

1025479

只要不想赢,就不会输!

在洛谷打开
资料、奖项与版本

资料

编号
1025479
抓取

XJ{\color{Brown} {\Huge \mathfrak{XJ} } }

仙人本仙;
称呼请叫:

理仙

启示录:

数组开小,警钟撅烂

忘记初始化,警钟撅烂

(学校模拟赛,忘初始化,当场趋势。当逝人采访:“反正就是后悔,非常的后悔”)

一些成就:

23.8.9 100AC

23.9.3 A第一道蓝题

23.10.2 橙名力!!

23.10.12 一紫灭!

23.10.16 一黑灭&&200AC!(虽然贼水一黑)


火车头 工具 留言板 考前注意(

不要随手加memset;不要懒得写读优;可以养成没事就加inline和register的习惯;\mathit{{\color{Violet} 不要随手加memset;不要懒得写读优;可以养成没事就加inline和register的习惯;}}

单调队列千万别用STL的deque,求最大值的时候也不要用STL的max\mathit{{\color{Violet} 单调队列千万别用STL的deque,求最大值的时候也不要用STL的max}}

手写一个if;数组大小不要开的太大(这也费时间),差不多就好。\mathit{{\color{Violet}手写一个if;数组大小不要开的太大(这也费时间),差不多就好。} }

温馨提示

~~飚車千万条,安全第一条,車位不规范,抓車两行泪~~~~

小素数:811501007

大素数:2007200811161150107

快读快写:

C++
inline int read(){
	int x=0,f=1;char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
	while(ch>='0'&&ch<='9'){ x=x*10+ch-48;ch=getchar();}
	return x*f;
}
C++
void write(int x){
    if(x<0)putchar('-'),x=-x;
    if(x>9)write(x/10);
    putchar(x%10+'0');
    return;
}

播种rand

C++
#include<bits/stdc++.h>
using namespace std;
int main(){   
	srand((unsigned)time(NULL));
	cout<<rand();
	return 0;
} 

文件操作

C++
freopen("D:\\A.in","r",stdin);
freopen("D:\\A.out","w",stdout);

链式前向星

C++
int cnt=0;
void add(int u, int v, int w)
{
    edge[++cnt].to = v; 
    edge[cnt].w = w; 
    edge[cnt].next = head[u];
    head[u] = cnt;
}

还没有收录这位用户的文章。