include<stdlib.h> int search(int *a, int n){ int i,j,k;int mv,mi,nv,ni;for (i=0;i<n-1;i++) for (j=i+1;j<n;j++)if (a[j] < a[i]){k=a[i];a[i]=a[j];a[j]=k;}; //从小到大排队 mv=a[0]; mi=1;nv=mv,ni=mi;for (i=0;i<n-1;i++)...