题解列表

筛选

活动选择 贪心 排序

摘要:解题思路:每一次活动开始的时间要大于等于上一次时间的结束时间注意事项:参考代码:n = int(input())lst = []for i in range(n): begi……

Python | 生成器

摘要:### yieldfrom运用在dfs问题 2038: [简化型背包]([简化型背包](https://www.dotcpp.com/vipstudy_suanfa/problem/?id=203……

python|sys.stdin

摘要:```pythonimport sysfrom collections import Counter# python可能超时过不了全部,使用sys.stdin一次all in输入数据,……

python|并查集

摘要:```pythonclass UnionFind: def __init__(self, n): self.parents = list(range(n))……