摘要: struct DSU { vector<int> f, siz; DSU() {} DSU(int n) { init(n); } void init(int n) { f.resize(n); iota(f.begin(), f.end(), 0); siz.assign(n, 1); } int 阅读全文
posted @ 2024-07-29 22:45 GsGXT 阅读(52) 评论(0) 推荐(0)
摘要: CF Div3 962 E-F E. Decode 链接: Problem - E - Codeforces 简要题意: 给你一个长度为 \(n\) 的二进制字符串\(s\) 。对于每一对整数\((l, r)\) \((1 \leq l \leq r \leq n)\) 中,数出 \((x, y)\ 阅读全文
posted @ 2024-07-29 13:07 GsGXT 阅读(55) 评论(0) 推荐(0)