将笔记本按照内存从大到小进行排序,笔记本不被淘汰就意味着它的速度要比之前扫描的笔记本的最大速度要小,不然就要被完爆,这题和[糖糖 我真的不是签到题]有点像(https://ac.nowcoder.com/acm/problem/14583) #include<bits/stdc++.h> using namespace std; const int N=1e5+9; struct node{ int u,v; }a[N]; bool cmp(node a,node b){ return a.u>b.u; } int main(){ int n; ...