mstrsortlen.pl.in,v

来自「Lin-Kernighan heuristic for the TSP and 」· IN,V 代码 · 共 51 行

IN,V
51
字号
head	1.1;access;symbols	zero-five-zero:1.1	zero-four-seventeen:1.1	zero-four-ten:1.1	zero-four-nine:1.1	zero-four-eight:1.1	zero-four-five:1.1	zero-four-three:1.1	zero-four-zero:1.1;locks	neto:1.1;comment	@# @;1.1date	97.11.07.22.21.54;	author neto;	state Exp;branches;next	;desc@Reverse sort MST elem lengths.@1.1log@Initial revision@text@#! @@PERL@@# @@configure_input@@# mstsortlen.pl# Input is $n$ followed by $n$ floating point numbers, one to a line.# Output is the $n$ numbers, in increasing order.$tmp_file = "/tmp/mstsortlen.$$";open(TMP,"|sort -n >$tmp_file") # Relies on numeric sort!	|| die "Can't open $tmp_file for writing"; $num_lines = <>;while( <> ) { print TMP; }close(TMP);print $num_lines;open(TMP,"<$tmp_file")	|| die "Can't open $tmp_file for reading"; while(<TMP>) { print; }unlink($tmp_file);@

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?