在吵架的小辣鸡很糊涂
在吵架的小辣鸡很糊涂
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在吵架的小辣鸡很糊涂的博客
全部文章
(共74篇)
题解 | 查找组成一个偶数最接近的两个素数
#include <iostream> #include <vector> #include <algorithm> #include <map> using namespace std; // 判断一个 数 是否是素数 static bool is...
2025-08-04
0
15
题解 | 找出字符串中第一个只出现一次的字符
#include <iostream> #include <vector> #include <map> #include <algorithm> using namespace std; int main() { string s; ...
2025-08-03
0
19
题解 | 输入n个整数,输出其中最小的k个
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { int n, k; while (cin >>...
2025-08-03
0
17
题解 | 高精度整数加法
#include <iostream> #include <algorithm> using namespace std; int stringNumAdd(char a, char b, string& s, int num = 0) { int n = ...
2025-08-03
0
13
题解 | 完全数计算
#include <iostream> #include <algorithm> #include <vector> #include <numeric> using namespace std; // 计算 所有的真因子(即除了自身以外的约数)的和...
2025-08-02
0
17
题解 | 挑7
#include <iostream> #include <algorithm> using namespace std; // 计算跟7有关的数字的个数,是7的倍数或者是数字中包含其 static int selectRelative7(int n) { int cou...
2025-08-02
0
16
题解 | 不要三句号的歪
#include <iostream> using namespace std; int main() { long int a, b, c; #pragma warning(disable : 4996) scanf("%ld,%ld,...,%ld", &a...
2025-08-02
1
16
题解 | 杨辉三角的变形
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { // 由于 n 可能很大 写出完整的 杨辉三角不显示,会导致内存占用过大; ...
2025-08-01
0
20
题解 | 输出单向链表中倒数第k个结点
#include <iostream> using namespace std; static struct ListNode { int val; ListNode* m_pNext; ListNode(int v) : val(v), m_pNext(nul...
2025-08-01
0
20
题解 | 从单向链表中删除指定值的节点
#include <iostream> using namespace std; struct ListNode { int data; ListNode* next; // 构造函数,data(value), next(nullptr) 是初始化列表; ...
2025-08-01
0
15
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页