2023年12月10日
摘要: #include<iostream> using namespace std; int h[1000000]; int z=0;//z表示数列中有几个元素 void up(int x){ while(x>1 && h[x]<h[x/2]){ swap(h[x],h[x/2]); x /= 2; } 阅读全文
posted @ 2023-12-10 20:36 未晞之时 阅读(42) 评论(0) 推荐(0)