#include #include #include using namespace std; inline double abs(double a){ return a*a; } const double varu=0.000001; int main(int argc, char *argv[]) { int n; cin>>n; double x[n], y[n]; for(int i=0; i>x[i]>>y[i]; double samm; cin>>samm; int kaugeim; // Kas saaab { int i; for(i=0; isammuga) if( sqrt( abs(x[i]-x[j]) + abs(y[i]-y[j] ) ) <= samm ){ samme[j]=sammuga+1; kuni=true; } sammuga++; } cout<<"Kaugeimale kivile saab "<meetreid[i]+kaugus+meetreid[j]) parim=meetreid[i]+kaugus+meetreid[j]; } else{ parim=meetreid[i]+kaugus+meetreid[j]; olemas=true; } } else{ if(k2idud[j]){ if(meetreid[j]>meetreid[i]+kaugus){ meetreid[j]=meetreid[i]+kaugus; cout<