文件名称:wendang
介绍说明--下载内容均来自于网络,请自行研究使用
数值交换
Problem Descr iption
输入n(n<100)个数,找出其中最小的数,将它与第一个数交换后输出这些数
Input
输入数据有多组,每组占一行,每行的开始是一个整数n,表示这个测试实例的数值的个数,跟着就是n个整数。n=0表示输入的结束,不做处理。
Output
对于每组输入数据,输出交换后的数列,每组输出占一行。
Sample Input
4 2 1 3 4
5 5 4 3 2 1
0
Sample Output
1 2 3 4
1 4 3 2 5
-Numerical exchange
Time/Memory Limit: 1000 MS/32768 K
Submitted: 2222 Accepted: 1237
Problem Descr iption
Enter n (n <100) number to identify the smallest number, it would be the first number after the exchange with the output of these numbers
Input
Multiple sets of input data, each representing one line, the beginning of each line is an integer n, indicates the number of values in this test case, followed by n is an integer. n = 0 represents the input end, and not treated.
Output
For each set of input data, the number of columns output exchanged, each output line.
Sample Input
42134
554321
0
Sample Output
1234
14325
Problem Descr iption
输入n(n<100)个数,找出其中最小的数,将它与第一个数交换后输出这些数
Input
输入数据有多组,每组占一行,每行的开始是一个整数n,表示这个测试实例的数值的个数,跟着就是n个整数。n=0表示输入的结束,不做处理。
Output
对于每组输入数据,输出交换后的数列,每组输出占一行。
Sample Input
4 2 1 3 4
5 5 4 3 2 1
0
Sample Output
1 2 3 4
1 4 3 2 5
-Numerical exchange
Time/Memory Limit: 1000 MS/32768 K
Submitted: 2222 Accepted: 1237
Problem Descr iption
Enter n (n <100) number to identify the smallest number, it would be the first number after the exchange with the output of these numbers
Input
Multiple sets of input data, each representing one line, the beginning of each line is an integer n, indicates the number of values in this test case, followed by n is an integer. n = 0 represents the input end, and not treated.
Output
For each set of input data, the number of columns output exchanged, each output line.
Sample Input
42134
554321
0
Sample Output
1234
14325
(系统自动生成,下载前可以参看下载内容)
下载文件列表
wendang.txt