Set of strings
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Set of strings is given. Sort it according to their size. If the size of the strings are equal keep the original order of strings.
Input
First line contains number of tests. Each next line contains set of strings. Each string has no more than 50 characters ('a' - 'z').
Output
Print each set of strings in one line ordered by their length.
Examples
Input #1
Answer #1
Submissions 304
Acceptance rate 31%