摘要:
AcWing839. 模拟堆 题解 #include <iostream> using namespace std; const int N = 1e5+10; //hp:堆中下标k,集合中下标为hp[k] //ph:集合中下标k,堆中下标ph[k] int p[N], h[N], hp[N], p 阅读全文
摘要:
AcWing837. 连通块中点的数量 题解 #include <iostream> #include <cstdio> using namespace std; const int N = 1e5 + 10; int p[N], cnt[N], n, m, x, y; int find(int x 阅读全文