题解列表

筛选

还是畅通工程 (C++代码)

摘要:解题思路:            还是并查集+快排#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 7; s……

畅通工程 (C++代码)

摘要:解题思路:                并查集#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 7; st……

继续畅通工程 (C++代码)

摘要:解题思路:                继续并查集+快排#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 7……

汽水瓶 (C语言代码)

摘要:解题思路:取10以内计算可以发现,当n为偶数时,可以换n/2瓶,奇数时就是(n-1)/2,除开n=1时为0,注意事项:参考代码:#include<stdio.h>int main(){ int n,b……