
#include<stdio.h> main() { int i,j,a,b; int arr[10]={34,77,13,62,4,11,58,90,22,83}; int cp[10]; for(i=0;i<10;i++) cp[i]=arr[i]; int key; for(i=1;i<10;i++){ key=i; j=i-1; while(j>=0&&cp[j]<cp[key]){ int t=cp[j]; cp[j]=cp[key]; cp[key]=t; key=j; j--; } } for(i=0;i<10;i++) if(cp[1]==arr[i]) j=i; printf("%d %d\n",cp[1],j); }

未佩好剑,转身便已是江湖