1098 Insertion or Heap Sort (25 point(s))

題解 堆排序and插入排序。 #include<iostream> #include<cstdio> #include<vector> #include<algorithm> using namespace std; int n; vector<int> a, b; void dowajust(int i, int n) { int j = 2 * i; while(j <= n) { i
相關文章
相關標籤/搜索