题解列表

筛选

python|sys.stdin

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

Python | 生成器

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

简单易懂 给个赞 嘻嘻

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fact(int n);int main(){ int n; // n 是空的汽水瓶 while (1) { s……

前缀总分暴力解法

摘要:思路:1.先找出最开始各个字符串的前缀长度之和2.然后枚举出每个26个字母在每个字符串之间修改之后的前缀长度对比```c++#includeusing namespace std;……

铺地毯问题python

摘要:n = int(input())arr = []for i in range(n): a,b,g,k = map(int,input().split()) g = a+g……