主页 backup

· · 个人记录

Q3766747681 欢迎扩列

https://noi.ccf.org.cn/gynoi/tlgd/2025-09-01/848189.shtml

众所不周知,一个主页不需要有一张头图。求推荐呜呜呜

\color{001145}{欢迎来到我的主页。}

坐标 ZJ,JX。同机房巨佬:这里太卷了,难绷

我永远喜欢 VS Code!!!

高一才接触竞赛的蒟蒻 QwQ。

『自己选择的路,跪着也要走完』 **因为热爱,所以坚持!** 一些人过去的梦想,一些人放弃的理想。 ## 咕咕咕 ~~(https://api.jerryz.com.cn/guzhi?id=1430250&scores=100,88,61,100,20)~~ ## 大事记:~~暂无~~ (~~其实是懒得写~~) - $2024-11-05$ 在 [同校巨佬](https://www.luogu.com.cn/user/581626) 的帮助下 $AC$ 第一道蓝题,[link](https://www.luogu.com.cn/record/187004375)(~~虽然现在降绿了~~) - $2025-06-28$ [比赛](https://www.luogu.com.cn/contest/235738) $Rk8$ 祭 - $2025-07-21$ 咕值排名前 $100$ 祭 (排名 $92$,咕值 $372$) - $2025-08-05$ 提交 $2k$ 祭 - $2025-08-12$ $AC\ 500$ 祭 - $2025-09-01$ $AC\ 600$ 祭 - $2025-09-18$ $AC\ 666$ 祭 - $2025-09-24$ $AC\ 700$ 祭 - $2025-10-03$ $AK$ [$Div2$](https://www.luogu.com.cn/contest/277395) - $2025-10-25$ $AC\ 800$ 祭 - $2025-12-6$ $AC\ 900$ 祭。之后要少水除 DP 以外的绿题,多做蓝紫黑。 - $2025-12-17$ 排名 $90$,咕值 $378

警示后人

宣团; 好玩的; 好用的; 关于你谷; 也许有用; 犇圈

喜欢卡常?

我永远喜欢___

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

解解《启示录》