1#!/usr/bin/perl
23
my $minrt = 1e100;
4my $min;
56
while (<>) {
7# [h:]m:s.xx U.xx S.xx
8/^(?:(\d+):)?(\d+):(\d+(?:\.\d+)?) (\d+(?:\.\d+)?) (\d+(?:\.\d+)?)$/
9or die "bad input line: $_";
10my $rt = ((defined $1 ? $1 : 0.0)*60+$2)*60+$3;
11if ($rt < $minrt) {
12$min = $_;
13$minrt = $rt;
14}
15}
1617
if (!defined $min) {
18die "no input found";
19}
2021
print $min;