?? tsp2rwm.c
字號:
#define x(v) ((int) (tsp->coord?tsp->coord[(v) ].x[0]:0) ) #define y(v) ((int) (tsp->coord?tsp->coord[(v) ].x[1]:0) ) \/*2:*/#line 74 "./tsp2rwm.w"const char*prog_name= "tspps";const char*tspps_rcs_id= "$Id: tspps.w,v 1.3 1998/07/24 20:12:19 neto Exp neto $";#include <config.h>#include "lkconfig.h"#include <stddef.h>#include <stdio.h>#include <stdlib.h>#include "length.h"#include "read.h"/*3:*/#line 95 "./tsp2rwm.w"int noround= 0;int main(int argc,char**argv){tsp_instance_t*tsp;if(!(LENGTH_TYPE_IS_INTEGRAL)){fprintf(stderr,"%s: Warning: Length type is not integral. Truncating lengths.\n",argv[0]);}tsp= read_tsp_file(stdin,NULL,1);/*4:*/#line 116 "./tsp2rwm.w"{const int n= tsp->n;int i,j;printf("%d %d U\n",n,n*(n-1)/2);for(i= 0;i<n;i++){printf("%d %d %d %d\n",n-1,i+1,x(i),y(i));for(j= 0;j<n;j++){printf("%d %d\n",j+1,(int)cost(i,j));}}}/*:4*/#line 105 "./tsp2rwm.w"return 0;}/*:3*/#line 86 "./tsp2rwm.w"/*:2*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -