zhuyucheng6046 @ 2024-06-01 19:23:04
如果你用“cin”会超时,要用“scanf”
by Lyx8058 @ 2024-06-03 21:13:24
其实cin,cout也能过:
std::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int read_quickly(){
int x=0,f=1;
char c=getchar();
while(!(c>='0'&&c<='9')){
if (c=='-') f=-1;
c=getchar();
}
while(c>='0'&&c<='9'){
x=(x<<3)+(x<<1)+(c-'0');
c=getchar();
}
return x*f;
}