2022.3.1开始学OI,蒟蒻
2022.10.22:蓝 1
2022.12.9:紫 1
2023.4.21:题解 1
2023.6.4:AC100
2023.9.5:黑 1
2023.9.8:AC200
2024.2.2:AC300
2024.2.15:蓝 100
2025.10.7:绿 100
要看的帖子
杂记
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;
}
struct edge{
int to,nex;
}e[M];
int hd[N];
e[(i<<1)-1].to=v,e[(i<<1)-1].nex=hd[u],hd[u]=(i<<1)-1,
e[i<<1].to=u,e[i<<1].nex=hd[v],hd[v]=i<<1;