Largest of All
All submissions for this problem are available.Tumpaa is on her way to fight the greatest war in Westeros.She wants to defeat the army of the dead,but she dosen't have an army.She has been given a gift by the lord of light.The gift is an array of numbers of size n.She can arrange the digits of the array in any way she can and give it back to the lord of light.She will receive an army of the size of the number that the array represents going from left to right.The array is very large and Tumpaa wants to form the largest army possible.Help her defeat the army of the dead. ###Input: - First line will contain $N$, size of the array. - The next line contains $N$ space separated integers,$ith$ of which represents the $ith$ number in the array. ###Output: The largest possible size of the array. ###Constraints - $1 \leq N \leq 1000$ - $1 \leq a[i] \leq 1000$ ###Sample Input: 1 2 23 1 ###Sample Output: 3221 .
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, 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, TCL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions