杜武龙
杜武龙
全部文章
分类
归档
标签
去牛客网
登录
/
注册
杜武龙的博客
全部文章
(共18篇)
题解 | #多组_二维数组_T组形式#
#include <iostream> #include <vector> using namespace std; int main() { int T; cin >> T; while (T--) { // 注意 while 处理多个...
2024-08-14
0
132
题解 | #单组_二维数组#
#include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int n, m; cin >> n >>...
2024-08-14
0
134
题解 | #多组_一维数组_T组形式#
#include <iostream> #include <vector> using namespace std; int main() { int a, b; int T;cin>>T; int T1=T; while (T1...
2024-08-14
3
128
题解 | #单组_一维数组#
#include <iostream> #include <vector> using namespace std; int main() { int n;cin>>n; int a; vector<int>arr; ...
2024-08-14
0
158
题解 | #【模板】栈#
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> using namespace std; typedef struct LNode { in...
2024-07-19
0
140
题解 | #有效括号序列#
// 链式存储实现的栈 #include <cstddef> #include <cstdlib> typedef struct LNode { char data; struct LNode* next; }* LinkStack, LNode; // 初...
2024-07-15
0
162
题解 | #有效括号序列#
#define MaxSize 10000 // 括号匹配 bool bracketCheck(const char str[], int length) { // 声明一个顺序栈S, 静态分配内存空间 char data[MaxSize]; // 初始化栈 int...
2024-07-14
0
142
题解 | #有效括号序列#
#define MaxSize 10000 typedef struct { char data[MaxSize]; int top; } SqStack; // 初始化栈 void InitStack(SqStack& S) { S.top = -1; } //...
2024-07-14
0
194
首页
上一页
1
2
下一页
末页