回分類題庫
d200: CP Lab Exercise: Sorting with Qsort (Bonus)
出處:

Difficulity : N/A
Accepted : 13 Times | Submit :42 Times | Clicks : 1054
Accepted : 12 Users | Submit : 13 Users | Accepted rate : 92%
Time Limit :10000 ms | Memory Limit : 64000 KBytes
題目加入時間 : 2011-01-05 15:14

Content :

Sorting with qsort !!
A lot of students skip the class recently, Li has a list which records all the data.
This is so called "Lindler's List".

However, he is wondering who can write a sorting program to sort these names in ascending dictionary order.

Input :

There are lots of names, the total number of  names is at most 100. Each name's length is at most 10.

Output :

After all the names are input. Output a line separated by space in ascending order.

Sample Input :

GW
pandia
Okia
aiko

Sample Output :

GW Okia aiko pandia

Hint :


  

Author :


  Solve it!   Status Forum (0)

C++
C
JAVA
沒有解題記錄 28777. cp99703008 (2 ms , 216KB)
30706. nothinglo (4 ms , 214KB)
28792. cp98304001 (4 ms , 216KB)
28736. cp99703013 (4 ms , 218KB)
28732. cp99703003 (6 ms , 230KB)
55757. nwgs524513cja (114 ms , 176KB)

執行時間會受很多因素影響因此僅供參考,主機等級請看這裡