#include #include// setw #include #include #include//randomize(); #include void main(void) { int x[20],y[20],Z0[20],Z[20],Zmin[20]; float W[20][20]; ifstream ff("mami.txt");//Считываем координаты городов int k=0;//Число городов while(!ff.eof()) { ff>>x[++k]; ff>>y[k]; }; int i,j; for (i=1;iL0){//Если больше, то в зависимости от Р, выбираем или нет P0=random(100)/100.; P=exp(-(L1-L0)/T);//Вероятность выбора худшего решения if (P0