金刚侠
金刚侠
全部文章
分类
归档
标签
去牛客网
登录
/
注册
金刚侠的博客
全部文章
(共98篇)
题解 | 数水坑
#include<bits/stdc++.h> using namespace std; const int N = 101; int n, m; char a[N][N]; bool vis[N][N] = {false}; int dx[8] = {-1, -1, -1, 0, 0,...
2026-04-18
0
17
题解 | 迷宫寻路
#include<bits/stdc++.h> using namespace std; const int N = 101; char a[N][N]; bool vis[N][N] = {false}; int dx[4] = {1, -1, 0, 0}; int dy[4] = {...
2026-04-17
0
18
题解 | 数楼梯
#include <iostream> using namespace std; #include<vector> const int N = 998244353; int way(int n) { vector<int>num(n + 1, 0); ...
2026-04-09
0
34
题解 | 走迷宫
#include<iostream> #include<vector> #include<queue> using namespace std; int main(){ int n,m; cin>>n>>m; int...
2026-04-08
0
34
题解 | 最高分与最低分之差
#include <iostream> using namespace std; int main() { int n; cin>>n; int MAX=0; int MIN=10000; while(n--){ int ...
2026-03-05
0
54
题解 | 小乐乐找最大数
#include <iostream> using namespace std; int main() { int x; int MAX=0; while(cin>>x){ if(x>=MAX)MAX=x; } c...
2026-03-05
0
42
题解 | 动态整数集最近值提取
#include <iostream> using namespace std; #include <set> int main() { int q,op,x; cin>>q; set<int>s; while (q--...
2026-01-13
0
65
题解 | 验证栈序列
#include <iostream> using namespace std; #include <vector> #include <stack> bool isLegal(vector<int>&s,vector<int>&a...
2026-01-11
0
55
题解 | 有效括号序列
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return bool布尔型 */ ...
2026-01-10
0
65
题解 | 括号配对问题
#include <iostream> using namespace std; #include <stack> #include <string> bool ispipei(string &s){ stack<char>a; ...
2026-01-10
0
69
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页