摘要: 差分 + 贪心 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e5 + 10; int n; void solve() { cin >> n; vector<pair< 阅读全文
posted @ 2022-06-04 13:10 wKingYu 阅读(56) 评论(0) 推荐(1)
摘要: 点击查看代码 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N = 1e5 + 10; int n; struct Range { int l, r; bool oper 阅读全文
posted @ 2022-06-04 12:02 wKingYu 阅读(30) 评论(0) 推荐(0)