1083 List Grades (25 分) Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of which the grades are in a given interval. I…
1083 List Grades (25 分) Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of which the grades are in a given interval. I…
the problem is from PAT,which website is http://pat.zju.edu.cn/contests/pat-a-practise/1083 and the source code is as followed. /* firstly: sort the array using the algorithm "sort" secondly: traverse all the possible answer and find the most su…
https://pintia.cn/problem-sets/994805342720868352/problems/994805383929905152 Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student…
#include <cstdio> #include <cstdlib> using namespace std; class Stu { public: ]; ]; }; int main() { ; // because all the grades are distinct & grade in range of [0, 100] // use simplified bucket sort here Stu* stu[] = {}; int grade; scanf(…
Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of which the grades are in a given interval. Input Specification: Each…
Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of which the grades are in a given interval. Input Specification: Each…