题解列表
2838: 有趣的跳跃解题
摘要:解题思路:不进行排序,1~n-1作为数组下标,命中的该元素直接设置为1(默认值为0),如果已经为1了,重新设置直接可以打印Not jolly,退出程序。最后对1-~n-1的数组元素直接判断,看值是否都……
python|并查集
摘要:```pythonclass UnionFind: def __init__(self, n): self.parents = list(range(n))……
python|sys.stdin
摘要:```pythonimport sysfrom collections import Counter# python可能超时过不了全部,使用sys.stdin一次all in输入数据,……
编写题解 2571: 蓝桥杯2020年第十一届省赛真题-回文日期(代码较长但易理解,注释清晰)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int A(int x);int B(int p);int main(){i……
编写题解 1004: [递归]母牛的故事(注释清晰,简单易懂)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; int sum[55];&nb……
Python | 生成器
摘要:### yieldfrom运用在dfs问题 2038: [简化型背包]([简化型背包](https://www.dotcpp.com/vipstudy_suanfa/problem/?id=203……
简单易于理解的整数处理问题——Python
摘要:a=list(map(int,input().split()))m1=max(a)m2=min(a)b=a.index(m1)c=a.index(m2)a[b]=a[-1]a[……