zhangjitong
zhangjitong
全部文章
分类
题解(13)
归档
标签
去牛客网
登录
/
注册
zhangjitong的博客
全部文章
(共3篇)
题解 | #简单的数据结构#
STL 代码如下 #include<bits/stdc++.h> using namespace std; deque<int>q; int n,m,ar[200005],cnt; int main(){ cin>>n>>m; whil...
C++
队列
2024-10-05
0
94
题解 | #[NOIP2004]合并果子#
直接上AC代码 #include<bits/stdc++.h> using namespace std; priority_queue<int,vector<int>,greater<int>>q; int n,ans; int main(){ ...
C++
贪心
队列
2024-10-04
1
99
题解 | #Keep In Line#
STL直接模拟即可; AC代码+注释如下: #include<bits/stdc++.h> using namespace std; unordered_map<string,int>mp; queue<string>q; int ans; int main(){...
C++
模拟
队列
贪心
2024-10-04
2
111