All submissions for this problem are available.
You are provided a set of characters forming an alphabet, arranged in increasing
order of their weight. Write a program to sort a set of strings in ascending
order using the provided alphabet. The sorted output is to be displayed on the
First line contains the number of test cases. Each test case is separated by an
empty line. Each test case contains the following inputs:
- Size of alphabet
- Characters in alphabet
- Strings to be sorted
For each test case, display the input strings in ascending order. Output of each
test should be separated by an empty line.
|Time Limit:||2.5 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, JAVA, PYTH, CS2, PAS fpc, PAS gpc, RUBY, PHP, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, SQL, TEXT|
Fetching successful submissions