不要葱花的小饼干很开心
不要葱花的小饼干很开心
全部文章
分类
归档
标签
去牛客网
登录
/
注册
不要葱花的小饼干很开心的博客
全部文章
(共26篇)
题解 | 参议院投票
此题想到借助两个队列:r_deque记录红帮当前可行动成员的行动次序,d_queue记录黑帮当前可行动成员的行动次序。当两队列均不为空时,获取两队列的队首,若r_deque队首小于d_queue队首,说明当前红帮队头在黑帮队头之前,红帮队头可使黑帮队头出队,同时红帮队头出队后重新入队;若r_dequ...
2026-02-02
1
52
题解 | 验证栈序列
#include <iostream> #include <vector> #include <stack> using namespace std; int main(){ int q,n,m,k,d; cin>>q; for...
2026-01-30
1
55
题解 | 表达式求值
#include <stack> #include <string> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 返回表达式的值 ...
2026-01-30
1
46
题解 | 牛牛的考试
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct Option{ string s; char ch; ...
2026-01-27
1
75
题解 | 简写单词
#include <iostream> using namespace std; int main(){ string s; char a; getline(cin,s); //使用getline读取整行字符串,若使用cin>&g...
2026-01-27
1
56
题解 | 绕距
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main(){ int x1,y1,x2,y2; cin>>x1>&...
2026-01-21
1
67
首页
上一页
1
2
3
下一页
末页