8 人解决,11 人已尝试。
10 份提交通过,共有 29 份提交。
6.4 EMB 奖励。
单点时限: 1.0 sec
内存限制: 256 MB
The GX Light Pipeline Company started to prepare bent pipes for the new transgalactic light pipeline. During the design phase of the new pipe shape the company ran into the problem of determining how far the light can reach inside each component of the pipe. Note that the material which the pipe is made from is not transparent and not light reflecting.
Each pipe component consists of many straight pipes connected tightly together. For the programming purposes, the company developed the description of each component as a sequence of points
The input file contains several blocks each describing one pipe component. Each block starts with the number of bent points
The output file contains lines corresponding to blocks in input file. To each block in the input file there is one line in the output file. Each such line contains either a real value, written with precision of two decimal places, or the message Through all the pipe.
. The real value is the desired maximal Through all the pipe.
will appear in the output file.
4 0 1 2 2 4 1 6 4 6 0 1 2 -0.6 5 -4.45 7 -5.57 12 -10.8 17 -16.55 0
4.67 Through all the pipe.
8 人解决,11 人已尝试。
10 份提交通过,共有 29 份提交。
6.4 EMB 奖励。