#include using namespace std; int n, k; struct nesto{ double rast; int broj; }; nesto najkrace; int resenje[100005]; struct slog{ long long x; long long y; bool status; }; slog comp[100005]; slog runneri_ispis[100005]; struct runneriii{ long long x; long long y; float speed; float broj; }; runneriii popravljac[100005]; float niz_speed[100005]; map speed; map::iterator it; float Eps = 0.0000001; bool cmp(float r, float s){ if(abs(r-s)> n >> k; float a=0; for(int i=1;i<=k;i++){ file >> a; niz_speed[i]=a; speed[a]=i; } for(int i=1;i<=n;i++){ file >> comp[i].x >> comp[i].y; comp[i].status=0; // comp[i].br=i; } file.close(); sort(niz_speed+1,niz_speed+k+1,cmp); }*/ void input(){ fstream file; file.open("runners.in", ios::in); file >> n >> k; double a=0; //int m; //float c; speed[12]=1e9; for(int i=1;i<=k;i++){ //cout <<"i: "<< i << endl; file >> a; while(speed.find(a)!=speed.end()){ a=a+Eps; //niz_speed[i]=a; //cout << i <<" " << a << endl; //cout << a <<" " << speed.size() << endl; } niz_speed[i]=a; speed[a]=i; for (it=speed.begin(); it!= speed.end(); ++it){ cout << it->first << " => " << it->second << '\n'; } } for(int i=1;i<=n;i++){ file >> comp[i].x >> comp[i].y; comp[i].status=0; // comp[i].br=i; } file.close(); for(int i=1;i<=k;i++){ //cout << i << " "<