银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共166篇)
题解 | 动态整数集最近值提取
#include<bits/stdc++.h> using namespace std; set<int> st; int Q; int main(){ cin>>Q; int op,x; while(Q--){ cin>>op>...
2026-02-09
0
16
题解 | 【模板】多重集合操作
#include<bits/stdc++.h> using namespace std; multiset<int> st; void insertValue(int x){ //TODO 实现插入逻辑 st.insert(x); return; } ...
2026-02-09
0
15
题解 | 【模板】集合操作
#include<bits/stdc++.h> using namespace std; set<int> st; void instrtValue(int x){ //TODO 实现插入逻辑 st.insert(x); return; } void...
2026-02-09
0
12
题解 | 机器翻译
#include<bits/stdc++.h> using namespace std; const int M=110,T=1010; int m,n; int qu[M],front=0,rear=0; bool f[T]={false},em=true; int main(){ ...
2026-02-08
0
15
题解 | 参议院投票
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求出最终获胜帮派的名称 * @param s string字符串 * @return strin...
2026-02-08
0
14
题解 | 用两个栈实现队列
class Solution { public: void push(int node) { stack1.push(node); return; } int pop() { while(!stack1.empty()){ ...
2026-02-08
0
19
题解 | 队列消数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param tickets int整型vector * @param k int整型 ...
2026-02-08
0
13
题解 | 无法吃午餐的学生数量
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param students int整型vector * @param sandwich...
2026-02-08
0
14
题解 | 【模板】队列操作
#include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; int t; queue<int> qu; for(int i=1;i<=n;i++){ sc...
2026-02-08
0
16
题解 | 验证栈序列
#include<bits/stdc++.h> using namespace std; const int N=1e5+10; int q,n,a[N],b[N]; int main(){ cin>>q; while(q--){ cin>>n;...
2026-02-08
0
9
首页
上一页
6
7
8
9
10
11
12
13
14
15
下一页
末页