众所不周知,一个主页不需要有一张头图。求推荐呜呜呜
坐标 ZJ,JX。同机房巨佬:这里太卷了,难绷
我永远喜欢 VS Code!!!
高一才接触竞赛的蒟蒻 QwQ。
为中国语文学会:.
『自己选择的路,跪着也要走完』
因为热爱,所以坚持!
一些人过去的梦想,一些人放弃的理想。
咕咕咕
(https://api.jerryz.com.cn/guzhi?id=1430250&scores=100,88,61,100,20)
大事记:暂无
(其实是懒得写)
- 在 同校巨佬 的帮助下 第一道蓝题,link(
虽然现在降绿了) - 比赛 祭
- 咕值排名前 祭 (排名 ,咕值 )
- 提交 祭
- 祭
- 祭
- 祭
- 祭
- 祭
- 祭。之后要少水除 DP 以外的绿题,多做蓝紫黑。
- 排名 ,咕值
警示后人
Linux 大法好:
#define N 1024
inline void calc(const char *cmd, string &res) {
char buf_ps[N], ps[N] = {0};
FILE *ptr;
strcpy(ps, cmd);
if((ptr = popen(ps, "r")) != NULL) {
while(fgets(buf_ps, N, ptr) != NULL)
res += buf_ps;
pclose(ptr);
ptr = NULL;
}
}快读(简洁版):
#define isd(c) (c >= '0' && c <= '9')
#define gc getchar_unlocked()
inline int rd() {
int x = 0; char c;
for(c = gc; !isd(c); c = gc);
for(; isd(c); c = gc) x = (x << 1) + (x << 3) + (c ^ 48);
return x;
}快速模:
inline ull calc(const ull &x) { return x - (__uint128_t(x)*9920937979283557439ull >> 93) * 998244353; }哈希:
const int M = 1e7 + 19;
struct Hash {
pair<ull, ull> a[M];
#define h(x) ((x) % M)
inline ull& operator[] (const ull x) {
int i = h(x), j = 1;
for(; a[i].first != x && a[i].second != 0; ++j)
i = (i + j * j) % M;
a[i].first = x;
return a[i].second;
}
};
/*
const int M = 1e7 + 19;
struct Hash {
struct E { int nxt; ull x, y; } e[M];
int cnt = 0, h[M];
inline bool count(ull x) {
int val = x % M;
for(int i = h[val]; i; j = e[i].nxt)
if(e[i].x == x) return 1;
return 0;
}
inline ull& operator[] (ull x) {
int val = x % M;
for(int i = h[val]; i; i = e[i].nxt)
if(e[i].x == x) return e[i].y;
e[++cnt] = {h[val], x, 0}; h[val] = cnt;
return e[cnt].y;
}
} f;
*/梦中情图: https://fecdn.luogu.com.cn/luogu/ac-congrats.png?ce96b99faabe0d91e25e00917ef494af
一些标签
兴趣
QaQ
- 2025 RP += INF