scutlwy
scutlwy
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
scutlwy的博客
全部文章
(共23篇)
题解 | #迷宫问题# C++ 回溯
#include <iostream> #include <vector> using namespace std; void dfs(vector<vector<int>>& puzzle, int i, int j, vecto...
2023-02-12
0
342
题解 | #整数与IP地址间的转换# C++ 注意整数溢出
#include <iostream> #include <bitset> #include <sstream> using namespace std; int64_t ip_to_int(string ip) { stringstream ss(i...
2023-02-11
0
357
题解 | #字符串排序# C++桶排序
#include <iostream> #include <cctype> #include <algorithm> #include <vector> using namespace std; int main() { string in;...
2023-02-11
0
319
题解 | #密码强度等级# C++
#include <iostream> #include <cctype> using namespace std; int find_c (string str, int (*func)(int c)) { int count = 0; for (cha...
2023-02-11
0
316
题解 | #坐标移动# C++
#include <iostream> #include <vector> #include <cctype> using namespace std; void SplitString(const std::string& s, std::vector<s...
2023-02-08
0
324
题解 | #合并表记录# CPP
#include <iostream> #include <map> using namespace std; int main() { map<int, int> map_num; int n; cin >> n; ...
2023-02-08
0
191
题解 | #字符串分隔# C++
#include <iostream> using namespace std; int main() { string str; getline(cin, str); int n = str.size(); if (n % 8 < 8) { ...
2023-02-07
0
208
题解 | #字符串最后一个单词的长度# C++ 三行代码
#include <iostream> using namespace std; int main() { string str; getline(cin, str); cout << str.size() - str.find_last_of(' ...
2023-02-07
0
156
Java 递归分治法
import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * } */ public class Sol...
2020-08-24
3
905
java 双指针滑动窗口
import java.util.*; public class Solution { public String ReverseSentence(String str) { if(str == null || str.trim().length() == 0){ ...
2020-08-20
0
662
首页
上一页
1
2
3
下一页
末页