摘要:
单链表 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int M = 1e5+10; int val[M],ne[M],idx,head; int m; void add_hea 阅读全文
摘要:
1242. 修改数组 做法一:并查集变种 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 2e6; int p[N]; int n,x; int find(i 阅读全文