永恒学者
永恒学者
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
永恒学者的博客
全部文章
(共38篇)
题解 | 牛牛与后缀表达式
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 给定一个后缀表达式,返回它的结果 * @param str string字符串 * @retur...
2026-01-27
0
41
题解 | 括号配对问题
#include <ios> #include <iostream> #include <stack> #include <string> using namespace std; stack<char> st; int main() {...
2026-01-27
0
41
题解 | 【模板】栈的操作
#include <bits/stdc++.h> using namespace std; stack<int> s; int main() { int x,T; cin >> T; while (T--) { ...
2026-01-27
0
47
题解 | 逗号整合器
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 整理出一个将序列中的数字以逗号隔开从而得到的字符串 * @param a int整型vector 需要整理的...
2026-01-27
0
33
题解 | 求峰谷点数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求序列a中的峰、谷点的个数 * @param a int整型vector 序列a * @retur...
2026-01-27
0
36
题解 | 【模板】序列操作
#include <bits/stdc++.h> #include <functional> using namespace std; vector<int> v; int main() { int q,op,x,i; cin >> ...
2026-01-27
0
31
题解 | 复读机
#include <iostream> #include <string> #include <iomanip> using namespace std; int main() { int a{0}; long long b{0}; do...
2026-01-27
0
40
题解 | 牛牛学说话之-字符串
#include <bits/stdc++.h> using namespace std; int main() { string str ; cin >> str; cout << str; return 0; } // 64 ...
2026-01-27
0
34
首页
上一页
1
2
3
4
下一页
末页