printf("%d\n",a[9]);return0; } //STL #include<cstdio>#include<algorithm>usingnamespacestd;intmain(){inta[10],i,j;for(i=0;i<10;i++)scanf("%d",&a[i]); sort(a,a+10);for(i=9;i>0;i--)printf("%d",a[i]); printf("%d\n",a[0]);return0; }...
题44:编程输入10个正整数,然后自动按从大到小的顺序输出。 Input 输入只有一行,包括10整数. Output 输出只有一行,包括10个整数。 Sample Input 1 2 3 4 5 7 6 8 9 10 Sample Output 10 9 8 7 6 5 4 3 2 1 提示:数组与排序,注意输出最后一个空格要考虑。处理方法最后一个单独输出。 program ex_44...
题44:编程输入10个正整数,然后自动按从大到小的顺序输出。 Input 输入只有一行,包括10整数. Output 输出只有一行,包括10个整数。 Sample Input 1 2 3 4 5 7 6 8 9 10 Sample Output 10 9 8 7 6 5 4 3 2 1 提示:数组与排序,注意输出最后一个空格要考虑。处理方法最后一个单独输出。
序输出。 题44:编程输入10个正整数,然后自动按从大到小的顺序输出。 Input 输入只有一行,包括10整数. Output 输出只有一行,包括10个整数。 SampleInput 12345768910 SampleOutput 10987654321 提示:数组与排序,注意输出最后一个空格要考虑。处理方法最后一个单独输出。
题目描述 编程输入10个正整数,然后自动按从大到小的顺序输出。 输入 输入只有一行,包括10整数. 输出 输出只有一行,包括10个整数。 样例输入 复制 1 2 3 4 5 7 6 8 9 10 样例输出 复制 10 9 8 7 6 5 4 3 2 1 来源/分类 数组问题 提交提交记录统计讨论露一手! © 版权所有 晴练网 2022 - 2025...
题44:编程输入 10 个正整数,然后自动按从大到小的顺序输出。 Input 输入只有一行,包括 10 整数. Output 输出只有一行,包括 10 个整数。 Sample Input 1 2 3 4 5 7 6 8 9 10 Sample Output 10 9 8 7 6 5 4 3 2 1 提示:数组与排序,注意输出最后一个空格要考虑。处理方法最后一个单独输出。 progr...
题44:编程输入 10 个正整数,然后自动按从大到小的顺序输出。 Input 输入只有一行,包括 10 整数. Output 输出只有一行,包括 10 个整数。 Sample Input 1 2 3 4 5 7 6 8 9 10 Sample Output 10 9 8 7 6 5 4 3 2 1 提示:数组与排序,注意输出最后一个空格要考虑。处理方法最后一个单独输出。 progr...
题44:编程输入 10 个正整数,然后自动按从大到小的顺序输出。 Input 输入只有一行,包括 10 整数. Output 输出只有一行,包括 10 个整数。 Sample Input 1 2 3 4 5 7 6 8 9 10 Sample Output 10 9 8 7 6 5 4 3 2 1 提示:数组与排序,注意输出最后一个空格要考虑。处理方法最后一个单独输出。 progr...
jz1044【⼊门】编程输⼊10个正整数,然后⾃动按从⼤到⼩的顺 序输出 //冒泡排序 #include<cstdio> #include<iostream> #include<cstdlib> #include<cmath> #include<cctype> #include<string> #include<cstring> #include<algorithm> using namespace std;int main(){ int a[10],i,j;for(i=0;...