Loading

摘要: 如果这个题强制在线的话可以排序+二分+区间最值,但是注意题目一次把所有查询给到了,所以可以用离线做法,按照查询的价格排序,同时不断更新最大值 class Solution { public: struct Q { int pos; int p; int ans; }; static bool cmp 阅读全文
posted @ 2025-03-09 21:11 脂环 阅读(17) 评论(0) 推荐(0)