随笔分类 - 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,
阅读全文
摘要:题目链接: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
阅读全文
摘要:题目链接:https://www.acwing.com/problem/content/description/804/ 思路: 离散化实质是一种映射 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N=3e5+10; 4
阅读全文
摘要:题目链接: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;
阅读全文