#include #include #include #include #include using namespace std; struct ICPC { int s, p, u; int num; bool operator<(const ICPC& right) const { return s == right.s ? p < right.p : s > right.s; } }; int Univ[100001]; int main() { int n, k; cin >> n >> k; vectorraw_data(n); for (int i = 0; i < n; i++) { cin >> raw_data[i].s >> raw_data[i].p >> raw_data[i].u; raw_data[i].num = i; } vectordata(raw_data); sort(data.begin(), data.end()); for (int i = 0; i < k; i++) { int solved = data[0].s; vector > > Univ_pena; for (int j = 0; j > pena; for (int l = 0; l