#include Output Output Fn on a separate line. Sample Input 5 0 3 5 9 20 Sample Output 0 2 5 34 6765 #include 3542: 插入一个数到数列中 Time Limit: 1 Sec Memory Limit: 64 MB Submit: 3257 Solved: 1671 Description 已有一个排序好的数列:0 10 20 30 40 50 60 70 80,输入一个任意整数m,按序插入到正确位置,输出插入m后的数列。 Input 多组测试数据,每组输入一个整数m Output 输出插入m后的数列 Sample Input 35 -5 90 Sample Output 0 10 20 30 35 40 50 60 70 80 -5 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80 90 #include 3539: N个数从小到大排序 Time Limit: 1 Sec Memory Limit: 64 MB Submit: 5854 Solved: 2635 Description 输入一个正整数N和N个整数,将它们按从小到大的顺序进行排序后输出。 Input 多组测试数据,每组输入一个正整数N(1≤N≤100)和N个整数,用空格分隔。 Output 将这N个数按从小到大的顺序重新输出 Sample Input 10 -4 5 12 88 23 -9 2 0 8 10 5 12 3 4 9 -2 Sample Output -9 -4 0 2 5 8 10 12 23 88 -2 3 4 9 12 #include
算法标准答案(6)
2019-01-07 13:35
算法标准答案(6).doc
将本文的Word文档下载到电脑
下载失败或者文档不完整,请联系客服人员解决!