https://www.acmicpc.net/problem/21773코드#include #include using namespace std;#define FASTIO ios::sync_with_stdio(false);cin.tie(NULL);typedef struct { int id; int time; int pr;} pi;struct cmp { bool operator() (pi a, pi b) { if (a.pr == b.pr) { return a.id > b.id; } else return a.pr , cmp> pq;int main() { FASTIO; cin >> t >> n; for (int i = 0, a, b, c; i > a >> b >> c; pq.push({ a,b,c }); ..