文件名称:wendang
-
所属分类:
- 标签属性:
- 上传时间:2015-11-17
-
文件大小:560byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
数值交换
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.