04 2023 档案
摘要:https://codeforces.com/contest/1817 https://codeforces.com/contest/1818 2A. Politics 因为编号为 的人一定不会离开,那么最后留下的人一定要和编号为 的人的所有参数都一致,所以计数即可。 #includ
阅读全文
摘要:注:本文不写证明。 https://www.wolframalpha.com/ 花絮:真·sigma:,真·abc:, 一、剩余类环 记号: 在 意义下代表一个集合:${\dots,x-2n,x-n,x,x
阅读全文
摘要:利益相关:2023 SD 第一轮省集,pt 同学因为爆空间有两道题挂到了 0 分。 一、计算空间消耗 | 数据类型 | 消耗字节数量 | | : : | : : | | char | | | int | | | unsigned int | | | long long | $
阅读全文
摘要:A. Li Hua and Maze 题目保证了两个点的哈密顿距离至少为 ,所以他们不会相邻。 只要有点在角上答案就是 ,在边上但不在角上就是 ,否则就是 。 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_contain
阅读全文
摘要:A - Double Click 直接模拟就好。 时间复杂度: 。 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include
阅读全文