摘要: 点击查看代码 #include<iostream> #include<algorithm> using namespace std; typedef pair<int,int> PII; const int N = 1e5 + 10; int n; PII cow[N]; int main() { 阅读全文
posted @ 2022-06-14 22:24 wKingYu 阅读(32) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; int n, res; int a[N]; int main() { cin >> n; for (int i = 0 阅读全文
posted @ 2022-06-14 21:30 wKingYu 阅读(32) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<algorithm> using namespace std; typedef long long LL; const int N = 1e5 + 10; int n; LL res; int a[N]; int main() { 阅读全文
posted @ 2022-06-14 21:07 wKingYu 阅读(25) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<vector> #include<queue> using namespace std; int n, res; priority_queue<int,vector<int>,greater<int>> heap; int mai 阅读全文
posted @ 2022-06-14 20:04 wKingYu 阅读(31) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; int st, ed, n, res; struct Range { int l, r; bool operator 阅读全文
posted @ 2022-06-14 00:29 wKingYu 阅读(61) 评论(0) 推荐(0)