文件名称:123456
介绍说明--下载内容来自于网络,使用问题请自行百度
设有n个正整数,将他们连接成一排,组成一个最大的多位整数。例如:n=3时,3个整数13,312,343,连成的最大整数为:34331213。又如:n=4时,4个整数7,13,4,246连接成的最大整数为7424613。
有多组输入,每组数据格式如下:
第一行,一个数n,(1<=n<=20)表示有n 个数要连接;
第二行,n个数。
与输入对应,有多组输出,每组仅有一行,连接成的多位数
输入样例]
3
13 312 343
[输出样例]
34331213-With n positive integers, connect them in a row to form one of the largest number of integers. For example: n = 3, the three integers 13,312,343, and even into the largest integer is: 34331213. Another example: n = 4, the four integers 7,13,4,246 connected into the greatest integer is 7424613. Multiple sets of input, each data format is as follows: the first line, a number n, (1 < = n < = 20) indicated n number to be connected the second line, n the number. Input corresponding to multiple sets of outputs, each with only one line, connected into a multi-digit input sample] 313312343 [Output Example] 34331213
有多组输入,每组数据格式如下:
第一行,一个数n,(1<=n<=20)表示有n 个数要连接;
第二行,n个数。
与输入对应,有多组输出,每组仅有一行,连接成的多位数
输入样例]
3
13 312 343
[输出样例]
34331213-With n positive integers, connect them in a row to form one of the largest number of integers. For example: n = 3, the three integers 13,312,343, and even into the largest integer is: 34331213. Another example: n = 4, the four integers 7,13,4,246 connected into the greatest integer is 7424613. Multiple sets of input, each data format is as follows: the first line, a number n, (1 < = n < = 20) indicated n number to be connected the second line, n the number. Input corresponding to multiple sets of outputs, each with only one line, connected into a multi-digit input sample] 313312343 [Output Example] 34331213
(系统自动生成,下载前可以参看下载内容)
下载文件列表
123456.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.