#include #include #define DBG #ifdef DBG #define PRT(var) cout << #var << " = " << var << endl; #else #define PRT(var) #endif using namespace std; struct num{ int x; int por; /*num(int x, int por) : x(x), por(por) {}*/ }; const int MAX = 100002; num pole[MAX]; int n; int min_at (int start){ int min=start; for (int i = start;i> n; //static num *pole = new num[n]; if (n==0) break; for (int j=0;j> c; //pole[j]=num(c,j); //c je cislo pole[j].x=c; //c je cislo pole[j].por=j; } for (int j=0;j