题解列表
并查集(本题输入会超时要关闭输入流)
摘要:#include<bits/stdc++.h>using namespace std;const int N = 1e5 + 5;int fa[N], rk[N];int n, m;voi……
换一种思路来写用set中upper_bound()函数
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <set>using namespace std;typedef long long ll……
密码截获:模拟 + 剪枝
摘要:解题思路:模拟 + 剪枝注意事项:参考代码:#include<iostream>usingnamespacestd;boolispd(strin……
最短路径问题(floyd)
摘要:注意事项:floyd适用于ns>>t; //起点与终点 floyd(); cout……
c++骑马修栅栏(栈)
摘要:```cpp#include #include #include #include #include #include using namespace std;in……
c++dfs全排列解决该问题
摘要:#include<bits/stdc++.h>usingnamespacestd;intres=0;floata[15];f……
模拟-------------------------------------------------
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; &nb……
数学方法-推公式---------
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; &nb……