07 2023 档案
摘要:# A1. Dual (Easy Version) https://codeforces.com/contest/1854/problem/A1 ## 题意 给定一个长度为 的序列 ,你可以做以下操作: - 选定两个下标 $i, j(1 \leq
阅读全文
摘要:https://codeforces.com/contest/1852/problems # A. Ntarsis' Set https://codeforces.com/contest/1852/problem/A  {if (d[dp[u][j]] >= d[v]) u = dp[u][j];} if (u == v) return u; for (int j = lg
阅读全文
该文被密码保护。
摘要:# 一、定义 在 **无向连通图** 中,若存在一个点 使得删掉点 及其相连的边,会使原图不连通,就称 是原图的一个 **割点 (cut vertex)**;若存在一条边 满足删掉 $(
阅读全文
摘要:# 一、启发式合并 启发式合并多用于合并两个集合,现在有这样一个问题: 现在给定 个集合,第 个集合初始只有 ,要支持集合的合并操作。 如果我们暴力合并,时间复杂度会是 的。 参考并查集的按秩合并,考虑将小的集合合并到大的集合上。 考虑计算时间复杂度,
阅读全文
摘要:https://atcoder.jp/contests/abc308/tasks_print # A - New Scheme 过水已隐藏。 ```cpp #include #include #include #include using namespace std; using namespace
阅读全文