WA 52分请看这里

P8306 【模板】字典树

weirdoX @ 2022-12-11 13:41:14

inline void clear() {
    for (int i = 0; i <= idx; i++) {
        exist[i] = cnt[i] = 0;
        for(int j = 0; j < 62; j++)
            nxt[i][j] = 0;
    }
    idx = 0;
}

i一定要从0开始!!!!


by THE_ERA @ 2022-12-11 14:39:19

啊这


by 卷王 @ 2023-01-17 14:29:28

az


by ademik @ 2023-02-02 14:37:03

%%%


by YT0104 @ 2023-02-25 14:01:34

6(菜死我算了,改了就AC了

警钟长鸣


|