如果你复杂度正确但是过不了后三点……
查看原帖
如果你复杂度正确但是过不了后三点……
995117
pineappler楼主2024/5/13 20:13

要开快读!!
贴一份参考代码:

void read(long long &x){ 
	long long f=1;x=0;char s=getchar();
	while(s<'0'||s>'9'){if(s=='-')f=-1;s=getchar();}
	while(s>='0'&&s<='9'){x=x*10+s-'0';s=getchar();}
	x*=f;
}

Best wishes for you~

2024/5/13 20:13
加载中...