银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共166篇)
题解 | 自动管理停车场桩位系统
class Solution { public: stack<int> q; stack<int> minn; void push(int value) { q.push(value); if(minn.empty()){ ...
2026-02-08
0
12
题解 | 栈和排序
#include<bits/stdc++.h> using namespace std; const int N=1e6+10; int n,a[N]; bool f[N]={false}; int main(){ cin>>n; int ma=n; st...
2026-02-08
0
11
题解 | 牛牛与后缀表达式
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 给定一个后缀表达式,返回它的结果 * @param str string字符串 * @retur...
2026-02-07
0
13
题解 | 有效括号序列
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return bool布尔型 */ ...
2026-02-07
0
15
题解 | 吐泡泡
#include<bits/stdc++.h> using namespace std; int T; string s; int main(){ cin>>T; while(T--){ cin>>s; stack<char> st...
2026-02-07
0
10
题解 | 好串
#include<bits/stdc++.h> using namespace std; string s; stack<char> st; int main(){ cin>>s; bool flag=true; for(int i=0;...
2026-02-07
0
12
题解 | 括号配对问题
#include<bits/stdc++.h> using namespace std; const int N=1e4+10; string s; char a[N],p; int main(){ cin>>s; for(int i=0;i<s.siz...
2026-01-30
0
18
题解 | 【模板】栈的操作
#include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n,a[N],p; int main(){ cin>>n; string ins; int x; while(n--){...
2026-01-30
0
21
题解 | 旺仔哥哥转圈圈
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算出旺仔哥哥最后会站在哪位小朋友旁边 * @param a int整型vector 第 i 个小朋友的数字...
2026-01-30
0
16
题解 | 旺仔哥哥转圈圈
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算出旺仔哥哥最后会站在哪位小朋友旁边 * @param a int整型vector 第 i 个小朋友的数字...
2026-01-28
0
22
首页
上一页
7
8
9
10
11
12
13
14
15
16
下一页
末页