Logo
(追記) (追記ここまで)

5939번 - Race Results 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB91963852868.661%

문제

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

입력

  • Line 1: A single integer: N
  • Lines 2..N+1: Line i+1 contains cow i's time as three space-separated integers: Hours, Minutes, Seconds

출력

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

제한

예제 입력 1

3
11 20 20
11 15 12
14 20 14

예제 출력 1

11 15 12
11 20 20
14 20 14

힌트

출처

Olympiad > USA Computing Olympiad > 2010-2011 Season > USACO November 2010 Contest > Bronze 2번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /