【练习区】
【祭祀区】
2022年4月27日 AC100 祭
2022年4月27日 AC第一道绿题 祭
2022年10月1日 AC300 祭
2022年10月3日 AC100橙题 祭
2022年10月11日 AC第一道蓝题 祭
2022年11月26日 AC10绿题 祭
2023年1月4日 AC400 祭
2023年2月2日 AC第一道紫题(已掉蓝) 祭
2024年7月24日 AC500 祭
2024年7月26日 AC100 黄题 祭
2024年7月28日 AC200 红题 祭
2025年1月22日 AC600 祭
2025年1月22日 再次AC第一道紫题 祭
2025年2月10日 我又绿名了 祭
2025年3月2日 AC200 橙题 祭
2025年7月11日 AC100 绿题 祭
2025年8月19日 AC10 紫题 祭
【网站区】
非常好用的AI:
【代码区】
等本蒟蒻升级了在更新吧
O2/O3优化
#pragma GCC optimize(2)
#pragma GCC optimize(3, "Ofast", "inline")cin/cout关闭同步流
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);快读
int read(){
int x=0,f=1;char ch=getchar();
while(!isdigit(ch)){if(ch=='-') f=-1;ch=getchar();}
while(isdigit(ch)){x=x*10+ch-48;ch=getchar();}
return x*f;
}快写
void write(int x){
if(x<0) putchar('-'),x=-x;
if(x>9) write(x/10);
putchar(x%10+'0');
}模板
#include <bits/stdc++.h>
using namespace std;
const int NR = 1e5 + 5;
int main()
{
return 0;
}离散化
int m, b[NR];
void discrete(int n)
{
for(int i = 1; i <= n; i ++) b[i] = p[i];
sort(b+1, b+n+1);
m = unique(b+1, b+n+1) - b - 1;
for(int i = 1; i <= n; i ++) p[i] = lower_bound(b+1, b+m+1, p[i]) - b;
}二分后的答案
int ans;
for(ans=r;ans<=l;ans++)if(check(ans))break;
OI 神兽:
/**
* ┏┓ ┏┓+ +
* ┏┛┻━━━┛┻┓ + +
* ┃ ┃
* ┃ ━ ┃ ++ + + +
* ████━████+
* ◥██◤ ◥██◤ +
* ┃ ┻ ┃
* ┃ ┃ + +
* ┗━┓ ┏━┛
* ┃ ┃ + + + +Code is far away from
* ┃ ┃ + bug with the animal protecting
* ┃ ┗━━━┓ 神兽保佑,代码无bug
* ┃ ┣┓
* ┃ ┏┛
* ┗┓┓┏━┳┓┏┛ + + + +
* ┃┫┫ ┃┫┫
* ┗┻┛ ┗┻┛+ + + +
*/anything else?