荞麦假面
荞麦假面
全部文章
分类
归档
标签
去牛客网
登录
/
注册
荞麦假面的博客
全部文章
(共46篇)
题解 | 查找组成一个偶数最接近的两个素数
#include <cstdlib> #include <iostream> #include <cmath> using namespace std; bool isSu(int n){ for(int i=2;i<n;i++){ ...
2025-03-24
0
9
题解 | 合并表记录
#include <iostream> using namespace std; typedef struct { int index; int value; bool flag; } item; int main() { int n; cin...
2025-03-20
0
13
题解 | 进制转换
#include <iostream> #include <string> #include <algorithm> #include <cmath> using namespace std; int func(char a) { retur...
2025-03-19
1
20
题解 | A+B
#include <iostream> #include <string> #include <algorithm> using namespace std; long long func(string s) { long long n = 0; ...
2025-03-17
1
20
题解 | 完数
#include <iostream> using namespace std; bool func(int n) { int res = 0; for (int i = 1; i <= n / 2; i++) { if (n % i == 0) ...
2025-03-17
0
15
题解 | 数字之和
#include <iostream> using namespace std; int func(long long n) { int res = 0; while (n) { res += n % 10; n /= 10; }...
2025-03-16
0
15
题解 | IP地址
#include <iostream> #include <string> #include <algorithm> using namespace std; bool func(string str) { bool flag = true; f...
2025-03-15
0
14
题解 | 合并符串
#include <iostream> #include <string> using namespace std; int main() { string s1, s2; while (cin >> s1 >> s2) { ...
2025-03-15
0
17
题解 | 字符串去特定字符
#include <iostream> using namespace std; int main() { string str; char c; while (cin >> str) { cin >> c; ...
2025-03-14
1
17
根据边长判断
#include <iostream> using namespace std; void func(int a, int b, int c) { int min = a < b ? a : b; min = min < c ? min : c; i...
2025-03-14
1
14
首页
上一页
1
2
3
4
5
下一页
末页