#include<iostream> #include<queue> using namespace std; struct mode { int name; int beg; int time; int value; }jc; bool operator<(const mode &a, const mode &b) { if(a.value==b.value)return a.name>b.name; return a.value < b.value; } int main() { int now = 0, deadline = 0;...