模版:
代码:
#include<bits/stdc++.h>
using namespace std;
#define LL long long
#define itn int
#define ull unsigned long long
int main(){
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
return 0;
}
/*
` 4 000 4
44 0 0 44
x x y y x x 44 0 0 44
x x y y x x 4 4 0 0 4 4
x x y y x x 4 4 0 0 4 4
x y y x 4 4 0 0 4 4
x x y y x x 44444 0 0 44444
x x y x x 4 0 0 4
x x y x x 4 000 4
yy
*/愿你拥有没好的一天(doge)。
struct zdyhs{// 自定义哈希函数
static ull splitmix64(ull x) {
x+=0x9e3779b97f4a7c15;
x=(x^(x>>30))*0xbf58476d1ce4e5b9;
x=(x^(x>>27))*0x94d049bb133111eb;
return x^(x>>31);
}
size_t operator()(ull x)const{
static const ull FIXED_RANDOM=chrono::steady_clock::now().time_since_epoch().count();
return splitmix64(x+FIXED_RANDOM);
}
};
gp_hash_table<ull,ull,zdyhs>Hash;表示集合(自动去重), 表示集合的大小。
我的洛谷大事记:
通过审核的题解数达到 篇!
qq2110288361@hotmail.com
xyx404@hotmail.com
..........................................................................................................................................................................  
快读:
//整形快读加强版
struct ios {
inline char gc(){
static const int IN_LEN=1<<18|1;
static char buf[IN_LEN],*s,*t;
return (s==t)&&(t=(s=buf)+fread(buf,1,IN_LEN,stdin)),s==t?-1:*s++;
}
template <typename _Tp> inline ios & operator >> (_Tp&x){
static char ch,sgn; ch = gc(), sgn = 0;
for(;!isdigit(ch);ch=gc()){if(ch==-1)return *this;sgn|=ch=='-';}
for(x=0;isdigit(ch);ch=gc())x=x*10+(ch^'0');
sgn&&(x=-x); return *this;
}
} io;
io>>a;// 输入emm???
最后更新时间:
2025/04/06 16:10
下标如:
$A_i$上标如:
$A^1$大于等于号:
\geq小于等于:
\leq输入输出加速
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
无符号longlong
unsigned long long





