TopCoder

呵呵好喔
取出水壺 打開瓶蓋 操課後飲水 500cc 少量多次 喝水 喝水不複誦

User's AC Ratio

94.3% (33/35)

Submission's AC Ratio

42.7% (47/110)

Tags

Description

We define that a < z < b < y < c < x < ........

Give you N strings(contains lowercase letters only), can you sort them?

Input Format

a postive integer N, no more than 1000.
and then N strings, each string is non-empty and its length will not greater than 1000.

Output Format

please sort them and output these N strings, one per line.

Sample Input 1

3
aaa
yaa
zaa

Sample Output 1

aaa
zaa
yaa

Hints

Problem Source

原TIOJ1585 / Problem setter: akira

Subtasks

No. Testdata Range Score
1 0 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 65536 262144 1