摘要: 一开始,我想的是按线段长度来排序,但是无法判断是否全覆盖1~m个区间 正确的作法应该先按开始端点升序,如果相等则末端点降序 #include <iostream> #include <algorithm> #include <vector> using namespace std; const in 阅读全文
posted @ 2022-05-20 21:26 Flying_bullet 阅读(28) 评论(0) 推荐(0)