光顾着自负,却没有可以实现的计划,也许这就是我初二失败的最大原因吧。
CF 用轻量级卡常方式:
#pragma GCC optimize(“Ofast,no-stack-protector,fast-math”,3)
uint64_t seed=clock();
struct custom_hash {
static uint64_t splitmix64(uint64_t x) {
x += 0x9e3779b97f4a7c15;
x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
return x ^ (x >> 31);
}
size_t operator()(uint64_t x) const {
return splitmix64(x + seed);
}
};
gp_hash_table<uint64_t,int,custom_hash> a;DeepSeek 认证+论文研究得到的 xorshift:
ull g(ull x) {
x ^= sd;
x ^= x << 33;
x ^= x >> 55;
x ^= x >> 7;
x ^= x << 14;
return x;
}