摘要:
#include<bits/stdc++.h> using namespace std; void adjust_sort(int a[],int x,int n)//对长度为n的区间,第x个结点进行调整 { int l=2*x+1; int r=2*x+2;//左右子树 int max=x; if 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); } tie 函数是解除c++运行库层面对数据传输的相关绑定,而ios::sy 阅读全文