以茂
以茂
全部文章
分类
归档
标签
去牛客网
登录
/
注册
以茂的博客
全部文章
(共26篇)
题解 | IP地址
#include<bits/stdc++.h> using namespace std; bool func1(string str){ if(str[0] == '0' && str.size() > 1){ return false; ...
2026-03-20
0
18
题解 | A+B
#include<bits/stdc++.h> using namespace std; int trans(string s){ string res; for(int i = 0; i < s.size(); i++){ if(s[i] == '...
2026-03-09
0
30
题解 | 最小年龄的3个职工
#include<bits/stdc++.h> using namespace std; struct employee{ int number; string name; int age; }; bool cmp(employee a, employee b){...
2026-03-09
0
29
题解 | 成绩排序
#include<bits/stdc++.h> using namespace std; struct student{ string name; int age; int score; }; bool cmp(student a, student b){ ...
2026-03-09
0
36
题解 | 字符串连接
#include<bits/stdc++.h> using namespace std; char* func(char* str1, char* str2){ int len1 = 0, len2 = 0; int i = 0, j = 0; while(str...
2026-03-08
0
42
题解 | 二叉排序树
#include<bits/stdc++.h> using namespace std; struct Treenode{ int val; Treenode *left; Treenode *right; Treenode(int x) : val(x)...
2026-03-08
0
39
题解 | 统计单词
#include <bits/stdc++.h> using namespace std; int main(){ char c; int arr[100] = {0}; int count = 0; while(cin.get(c)){ ...
2026-03-06
0
45
题解 | 等式填充问题
#include<bits/stdc++.h> using namespace std; int gcd(int x, int y){ while(y != 0){ int temp = y; y = x % y; x = tem...
2026-03-06
0
33
题解 | 矩阵转置
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int matrix[101][101]; for(int i = 0; i < n; i...
2026-03-06
0
33
题解 | 字符串处理
#include<bits/stdc++.h> using namespace std; bool is_digit(char c){ return c >= '0' && c <= '9'; } bool is_alpha(char c){ ...
2026-03-05
0
33
首页
上一页
1
2
3
下一页
末页