cxk5467
cxk5467
全部文章
分类
归档
标签
去牛客网
登录
/
注册
cxk5467的博客
全部文章
(共5篇)
题解 | 计算字符串的编辑距离
#include <climits> #include <iostream> #include <vector> using namespace std; //a 插入 b 删除 c替换 int min_edit_Distance(string s, ...
2025-09-03
0
38
题解 | 【模板】滑动窗口
#include <deque> #include <iostream> #include <vector> using namespace std; vector<int> max_slip_window(vector<int>&...
2025-09-02
0
32
题解 | 数水坑
#include <iostream> #include <vector> using namespace std; void dfs(vector<string>& grid, int n, int m, int i, int j) { if ...
2025-09-01
0
32
题解 | 小苯送礼物
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int n, k; cin >> n >&...
2025-09-01
0
38
题解 | 挡住洪水
#include <iostream> #include <utility> #include <vector> using namespace std; //把bds看作dfs就好了嘿嘿。。。。。 //遇到墙或者越界就返回,否则就上下左右入侵,把0变成墙 v...
2025-08-31
0
34