프로그램 명: usa_marathon
제한시간: 1 초

The herd has run its first marathon! The N (1 <= N <= 5,000) times have been posted in the form of Hours (0 <= Hours <= 99), Minutes (0 <= Minutes <= 59), and Seconds (0 <= Seconds <= 59). Bessie must sort them (by Hours, Minutes, and Seconds) into ascending order, smallest times first.

Consider a simple example with times from a smaller herd of just 3 cows (note that cows do not run 26.2 miles so very quickly):

    11:20:20
    11:15:12
    14:20:14
The proper sorting result is:
    11:15:12
    11:20:20
    14:20:14

입력

출력

* Lines 1..N: Each line contains a cow's time as three space-separated integers

입출력 예

입력

3
11 20 20
11 15 12
14 20 14

출력

11 15 12
11 20 20
14 20 14
출처:usaco 2010 NOV bronze

[질/답] [제출 현황] [푼 후(0)]
[ 채 점 ] [홈으로]  [뒤 로]