摘要: https://atcoder.jp/contests/abc308/tasks_print # A - New Scheme 过水已隐藏。 ```cpp #include #include #include #include using namespace std; using namespace 阅读全文
posted @ 2023-07-07 21:10 CountingGroup 阅读(42) 评论(0) 推荐(0)
摘要: Find Problems: - https://www.luogu.com.cn/problem/list?type=CF&keyword=%E5%BC%BA%E8%BF%9E%E9%80%9A%E5%88%86%E9%87%8F&page=1 - https://www.luogu.com.cn 阅读全文
posted @ 2023-06-23 22:00 CountingGroup 阅读(57) 评论(0) 推荐(0)
摘要: - 打开 https://tool.chinaz.com/dns/ ,输入 github.com,复制任意响应 IP。 - 打开 `C:\Windows\System32\drivers\etc` 下的 `hosts`,用 Sublime Text 打开,加上 `IP地址 + 空格 + github 阅读全文
posted @ 2023-06-23 19:36 CountingGroup 阅读(367) 评论(0) 推荐(0)
摘要: 1838D. Bracket Walk (*2100) Algorithms:STL, 思维 https://codeforces.com/contest/1838/problem/D 题意 给定一个初始的括号序列 \(S\),\(q\) 次修改,每次修改一个位置 \(u\)(如果 \(S_u =\ 阅读全文
posted @ 2023-06-20 21:39 CountingGroup 阅读(29) 评论(0) 推荐(0)
摘要: 寄!大!了! Rating -= 124. ![image](https://img2023.cnblogs.com/blog/3143679/202306/3143679-20230619222246244-5109748.png) (恼) https://codeforces.com/conte 阅读全文
posted @ 2023-06-19 22:31 CountingGroup 阅读(64) 评论(0) 推荐(0)
摘要: # 〇、基础位运算 ## 与运算 / AND 语法:`a & b`。 计算方法:按位计算 AND。 运算:`1 & 1 = 1, 1 & 0 = 0, 0 & 1 = 0, 0 & 0 = 0`。 ## 或运算 / OR 语法:`a | b`。 计算方法:按位计算 OR。 运算:`1 | 1 = 1 阅读全文
posted @ 2023-06-16 20:58 CountingGroup 阅读(24) 评论(0) 推荐(0)
摘要: https://codeforces.com/contest/1841 https://codeforces.com/contest/1841/problems # D. Pairs of Segments https://codeforces.com/contest/1841/problem/D 阅读全文
posted @ 2023-06-13 20:19 CountingGroup 阅读(208) 评论(0) 推荐(0)
摘要: # 一、差分约束 差分约束可以求解如下问题的一组解: $$\begin{cases}x_{a_1} + c_1 \geq x_{b_1}\\ x_{a_2} + c_2 \geq x_{b_2} \\ \dots \\ x_{a_k} + c_k \geq x_{b_k}\end{cases}$$ 阅读全文
posted @ 2023-06-13 18:40 CountingGroup 阅读(32) 评论(0) 推荐(0)
摘要: # 一、基环树 基环树其实 **并不是** 一棵树,而是一张 $n$ 个点 $n$ 条边的连通图。 一般的基环树就形如一棵 $n$ 个节点的树再加上一条非树边。 扩展. 如果基环树不连通,就变成多个基环树组成的森林了。 Method 1. 将环拎出来,环上的每一个节点都挂了一棵子树,将子树信息合并, 阅读全文
posted @ 2023-06-12 17:02 CountingGroup 阅读(171) 评论(0) 推荐(0)
摘要: https://atcoder.jp/contests/abc305/tasks_print # E - Art Gallery on Graph 冷知识:md 这题赛时没做出来 /cy 刚看到题:这是什么题啊,$K, h$ 都 $1e5$ 能做吗 /fn 确实能做。 考虑类似 SPFA 的操作。 阅读全文
posted @ 2023-06-11 21:30 CountingGroup 阅读(69) 评论(3) 推荐(0)