package com.a**.shop;
import java.util.Arrays;
import java.util.Scanner;
import java.util.*;
public class shop{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print("输入班级人数:");
int stuNo = input.nextInt();
// int[]b = new int[stuNo];//序号
int[] stuScore = new int[stuNo];//分数
int[]minCi=new int[stuNo];//名次
for(int i = 0;i<stuScore.length;i++){
System.out.print("输入第"+(i+1)+"名学员分数:");
stuScore[i]=input.nextInt();
minCi[i] = stuScore[i];
}
System.out.println("###############################################");
Arrays.sort(stuScore);
int j;
for(int i=0;i<stuScore.length;i++){
for( j=0;j<stuScore.length;j++){
if(stuScore[i]==minCi[j]){
break;
}
} System.out.println("第"+(j+1)+"名学员的"+"分数是"+stuScore[i]);
}
}
}