-->
当前位置:首页 > 题库

PROGRAMMING:Maximum number of groups

Luz5年前 (2021-05-10)题库406
Set n positive integers and connect them into a row to form the largest multi bit integer< br/>
For example: when n = 3, the maximum integer of three integers 13312343 is 34331213< br/>
For example, when n = 4, the maximum integer connected by 4 integers 7, 13 and 4246 is 7424613< br/>
###Input format:
There are several groups of test samples. Each group of test samples contains two lines. The first line contains an integer n (n < = 100), and the second line contains n numbers (each number does not exceed 1000, and spaces are separated).
###Output format:
Each group of data output an integer representing the largest.
###Input example:
```in
two
12 123
four
7 13 4 246
```
###Output example:
```out
twelve thousand three hundred and twelve
seven million four hundred and twenty-four thousand six hundred and thirteen
```







answer:If there is no answer, please comment