番禺小韭菜
番禺小韭菜
全部文章
分类
归档
标签
去牛客网
登录
/
注册
番禺小韭菜的博客
全部文章
(共93篇)
题解 | 判断两个IP是否属于同一子网
#include <cstdint> #include <iostream> #include <cstdio> #include <vector> using namespace std; bool check_number(const vecto...
2025-02-27
0
31
题解 | 识别有效的IP地址和掩码并进行分类统计
#include<iostream> #include<string> #include<sstream> #include<vector> using namespace std; bool is_local(string ip){ str...
2025-02-27
0
27
题解 | 求小球落地5次后所经历的路程和第5次反弹的高度
#include <iostream> #include <iomanip> using namespace std; int main() { int h; cin >> h; cout << setprecision(6)...
2025-02-27
0
22
题解 | 字符串加密
#include <iostream> #include <unordered_set> using namespace std; int main() { string encrypt; getline(cin, encrypt); string ...
2025-02-27
0
26
题解 | 蛇形矩阵
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<vector<int>>...
2025-02-27
0
20
题解 | 整数与IP地址间的转换
#include <bitset> #include <iostream> #include <cstdio> #include <vector> using namespace std; int main() { uint32_t a, b...
2025-02-27
0
24
题解 | 单词倒排
#include <iostream> #include <string> using namespace std; int main() { char c; string ans; string word; while(cin.get(c...
2025-02-27
0
31
题解 | 字符串合并处理
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cctype> #include <sstream> ...
2025-02-27
0
23
题解 | 字符串合并处理
#include <iostream> #include <algorithm> using namespace std; int main() { string s; getline(cin, s, ' '); string t; getl...
2025-02-27
0
22
题解 | 字符串加解密
#include <iostream> using namespace std; int main() { string str1; getline(cin, str1); for (char& c : str1) { switch (c...
2025-02-27
0
22
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页