//Linux:getchar_unlocked()
//Windows:_getchar_nolock()
int read(){
char c;
int f=1;
c=getchar();
while(c<'0'||c>'9'){
if(c=='-') f=-1;
c=getchar();
}
int ans=0;
while(c>='0'&&c<='9'){
ans*=10;
ans+=c-'0';
c=getchar();
}
return ans*f;
}
void write(int x){
if(x<0){
putchar('-');
x*=-1;
}
if(x>9) write(x/10);
putchar(x%10+'0');
}
ios::sync_with_stdio(0);cin.tie(0), cout.tie(0);8917
2025/9/25 AC300祭
2025/10/27 红名祭
2025/11/24 蓝钩祭
2025/12/16 咕值排名前1000祭
2026/2/4 AC500祭
2026/7/24 AC600祭
2026/4/2 100绿祭
2026/10/14 AC700祭
165999
https://www.luogu.me/article/h94h8hy5
https://zhuanlan.zhihu.com/p/384223472
https://algorithm-duels.online/
キラキラ☆ドキドキ
1104080088