随笔分类 - 算法分类 / 贪心
摘要:2023-09-18 题目 Friendly Arrays 难度&重要性(1~10):5 题目来源 luogu 题目算法 贪心 解题思路 一道大水题。 这道题解法非常的套路,我们需要对于处理按位或和按位异或时,首先就要把数拆成二进制的形式去考虑。 首先我们需要简单了解一下按位或和按位异或的运算规则:
阅读全文
摘要:# 2023-07-14 ## 题目 [题目传送门](https://www.luogu.com.cn/problem/P7165) ### 题目大意 给定一个 个点的树,这 个点编号为 到 。 现在要选择断掉两条边,会形成三个连通块,假设这三个连通块内的点数分别为 $
阅读全文
摘要:# 2023-02-27 ## 题目 [题目传送门](https://atcoder.jp/contests/abc146/tasks/abc146_f) ## 翻译 [翻译](http://webtrans.yodao.com/webTransPc/index.html?from=en&to=zh
阅读全文
摘要:# 2023-02-13 ## 题目 [题目传送门](https://atcoder.jp/contests/abc140/tasks/abc140_f) ## 翻译 [翻译](http://webtrans.yodao.com/webTransPc/index.html?from=en&to=zh
阅读全文
摘要:# 2023-02-02 ## 题目 [题目传送门](https://atcoder.jp/contests/abc136/tasks/abc136_e) ## 翻译 [翻译](http://webtrans.yodao.com/webTransPc/index.html?from=en&to=zh
阅读全文
摘要:# 2023-01-14 ## 题目 [题目传送门](https://atcoder.jp/contests/abc128/tasks/abc128_d) ## 翻译 [翻译](http://webtrans.yodao.com/webTransPc/index.html?from=en&to=zh
阅读全文