perl -nale '$F[1]=~s/://;$h{$F[0]}=$F[1]if($F[1]>$h{$F[0]});END{for(sort keys(%h)){($x=$h{$_})=~s/^(..)(..)$/\1:\2/;print"$_ $x"}}'
1 12:00 1 12:34 1 01:01 1 08:06 2 09:56 2 06:52
1 12:34 2 09:56
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!