题解列表
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))……
2838: 有趣的跳跃解题
摘要:解题思路:不进行排序,1~n-1作为数组下标,命中的该元素直接设置为1(默认值为0),如果已经为1了,重新设置直接可以打印Not jolly,退出程序。最后对1-~n-1的数组元素直接判断,看值是否都……
c++++++++++++++++++++++++
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;struct node { ch……
题解 1234: 检查一个数是否为质数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long ……
题解 1234: 检查一个数是否为质数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){&nb……