TopCoder

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

User's AC Ratio

95.7% (22/23)

Submission's AC Ratio

48.5% (32/66)

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

3
aaa
yaa
zaa

Sample Output

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 (KiB) Output Limit (KiB) Subtasks
0 2000 65536 262144 1