Problem Description
输入10个整数,将它们从小到大排序后输出,并给出现在每个元素在原来序列中的位置。
Input
输入数据有一行,包含10个整数,用空格分开。
Output
输出数据有两行,第一行为排序后的序列,第二行为排序后各个元素在原来序列中的位置。
Example Input
1 2 3 5 4 6 8 9 10 7
Example Output
1 2 3 4 5 6 7 8 9 101 2 3 5 4 6 10 7 8 9
#include<stdio.h> void main() { int i,j,k,t1,t2; int a[10], b[10]; for(i=0;i<10;i++) { scanf("%d",&a[i]); } for(j=0;j<10;j++) { b[j]=j+1; } for(k=0;k&l