diff --git a/堆排序,.cpp b/堆排序,.cpp new file mode 100644 index 0000000..b8a78ba --- /dev/null +++ b/堆排序,.cpp @@ -0,0 +1,30 @@ +#include +int n,num[1000010]; +void down(int x) +{ + int y=x; + if(x*2<=n&&num[x*2]