#include #include #include using namespace std; void izpisi(vector v) { for (int x : v) cout << x << " "; cout << endl; } class BinaryHeap { private: vector t={-1}; public: void push(int x) { t.push_back(x); int i=t.size()-1; while (i>1 && t[i] s = {6,1,8,2,3,9,0,1,2,3}; vector s; int n=1'000'000; for (int i=0;i u; for (int i=0;i