以茂
以茂
全部文章
分类
归档
标签
去牛客网
登录
/
注册
以茂的博客
全部文章
(共20篇)
题解 | 统计单词
#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
6
题解 | 等式填充问题
#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
6
题解 | 矩阵转置
#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
7
题解 | 字符串处理
#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
7
题解 | 亲和数
#include<bits/stdc++.h> using namespace std; int getsum(int n){ int sum = 1; int i; for(i = 2; i < sqrt(n); i++){ if(n %...
2026-03-05
0
5
题解 | 象棋马走步问题
#include<bits/stdc++.h> using namespace std; bool obstacle[64] = {false}; bool visited[64]; int pre[64]; int dx[8] = {2, 1, -1, -2, -2, -1, 1,...
2026-03-05
0
8
题解 | 整数转换问题
#include<bits/stdc++.h> using namespace std; string func(int x){ string res; if(x == 0){ res = "0"; } while(x ...
2026-03-04
0
8
题解 | 公司发工资问题
#include<bits/stdc++.h> using namespace std; int main(){ int n; int count100 = 0, count50 = 0, count20 = 0, count10 = 0, count5 = 0, cou...
2026-03-03
0
10
题解 | 矩阵最大值
#include<bits/stdc++.h> using namespace std; vector<int> func(vector<int> arr){ int maxnum = 0; int len = arr.size(); in...
2026-03-03
0
8
题解 | 守形数
#include<bits/stdc++.h> using namespace std; bool func(int n){ int m = n * n; string m_str = to_string(m); string n_str = to_string(...
2026-03-02
0
10
首页
上一页
1
2
下一页
末页