
import java.io.*;
public class pat10802 {
static int flag = 0; //用来记录arr[]到第几位了
static Student10802[] arr = new Student10802[30000];
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
String[] arr1 = br.readLine().trim().split(" ");
int P = Integer.parseInt(arr1[0]);
int M = Integer.parseInt(arr1[1]);
int N = Integer.parseInt(arr1[2]);
for(int i=0;iarr[i].finalScore) {
double sum = (double)arr[i].midScore * 0.4 + (double)arr[i].finalScore * 0.6;
if(sum>=60) {
pass++; //记录合格人数
arr[i].score = (int)Math.round(sum);
}
}else {
if(arr[i].finalScore>=60) {
pass++; //记录合格人数
arr[i].score = arr[i].finalScore;
}
}
}
for(int i=0;imin) {
min = arr[j].score;
output = j;
}else if(arr[j].score==min && arr[j].No.charAt(0){
String No;
int workScore = -1;
int midScore = -1;
int finalScore = -1;
int score = -1;
@Override
public int compareTo(Student10802 o) {
// TODO Auto-generated method stub
if(this.score==o.score) return this.No.compareTo(o.No);
return o.score - this.score;
}
}
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)