ppco
ppco
全部文章
题解
归档
标签
去牛客网
登录
/
注册
ppco的博客
全部文章
/ 题解
(共2篇)
题解 | #武#
#include <bits/stdc++.h> using namespace std; int n,p,k; const int maxn=200005; const int inf=0x3f3f3f3f; struct node { int v; int w; node(int v...
2021-11-07
0
466
题解 | #Call to your teacher#
很简单的一个并查集板子题,只不过要注意一点,当输入的x等于n时不能将他们相连,别的就是模板了。代码如下: #include<bits/stdc++.h>using namespace std;int n,m,pre[55],a,b;int find(int x){ if(pr...
2021-08-14
2
860