复制结构体数组,之后四次排序,结果存原始数组中,最后算个最小值就可。 #include <bits/stdc++.h> using namespace std; int main() { struct rat { int id, gold, medal, people, rank[4]; }; int n, m; function<bool(rat, rat)> cmp[4] = { [](rat a, rat b) { return a.gold > b.gold; }, [](rat a, rat b) { re...