随笔分类 -  0J----AcWing

摘要:题目链接:https://www.acwing.com/problem/content/831/ 数组模拟队列 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N=1e5+10; 4 int a[N]; 5 int h=0, 阅读全文
posted @ 2022-01-12 09:24 wydxry 阅读(57) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.acwing.com/problem/content/830/ 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N=1e5+5; 4 int a[N]; 5 int main() 6 { 7 阅读全文
posted @ 2022-01-12 09:07 wydxry 阅读(43) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.acwing.com/problem/content/description/804/ 思路: 离散化实质是一种映射 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N=3e5+10; 4 阅读全文
posted @ 2022-01-11 23:25 wydxry 阅读(52) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.acwing.com/problem/content/805/ 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef pair<int,int> PII; 4 vector<PII> vec,ans; 阅读全文
posted @ 2022-01-11 22:59 wydxry 阅读(49) 评论(0) 推荐(0) 编辑

Live2D