三倍经验+警示后人
查看原帖
三倍经验+警示后人
1268907
uncle_steve楼主2025/7/30 11:29

原型:p2880

去掉区间最大值:p1816

对于本题:

  1. 请使用
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;
}

或者用 cin 快读。

  1. 换行用 \n 而不是 endl也许只有我才会这么唐吧
2025/7/30 11:29
加载中...