摘要:
普通 #include<iostream> using namespace std; #include<algorithm> #include<cstring> const int N = 5010; int n, f[N]; int a[N]; int main() { cin >> n; for 阅读全文
摘要:
题目acwing #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N = 100010; int n, m; int h[N], e[N], ne[N], idx; int 阅读全文
摘要:
树和图的框架 #include<iostream> #include<algorithm> using namespace std; const int N = 10010; int h[N], e[N], ne[N], idx; //a所对应的单链表中插入b a作为根 void add(int a 阅读全文