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

7596번 - MP3 Songs 다국어

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

문제

Sue loves her mp3 player but she hates the fact that her shuffle mode plays her tracks randomly. Because she loves order and patterns she would like the tunes on her mp3 player to be played in alphabetical order. In this problem you have to help Sue by sorting her tunes into alphabetical order of tune name.

입력

Input consists of a number of scenarios, each beginning with a single positive integer, n, the number of music tracks that require sorting (1 < n <= 200). The last line of input is a single 0 – this scenario should not be processed.

Each scenario consists of n lines, each line containing a tune name. No line will contain more than 250 characters. Each name will begin with an alphabetic character.

출력

Output will consist of the scenario number, the first being 1, on a line on its own. This will be followed by n lines showing the tune names from the input list, sorted in alphabetical order, one name per line. Case should be ignored.

제한

예제 입력 1

10
Forever
Take A Bow
Always On My Mind
Lollipop
Love In This Club
No Air
Sweet About Me
Party People
Mercy
American Boy
8
Partita
Air on a 'G' string
Sinfonia in D
Jesu, joy of man's desiring 
Arioso
Violin Concerto in A Minor
Brandenburg Concerto 2
Concerto for 2 violins
0

예제 출력 1

1
Always On My Mind
American Boy
Forever
Lollipop
Love In This Club
Mercy
No Air
Party People
Sweet About Me
Take A Bow
2
Air on a 'G' string
Arioso
Brandenburg Concerto 2
Concerto for 2 violins
Jesu, joy of man's desiring 
Partita
Sinfonia in D
Violin Concerto in A Minor

힌트

출처

ICPC > Regionals > South Pacific > South Pacific Region > New Zealand Programming Contest > NZPC 2008 B번

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

출처

대학교 대회

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

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