追风的羽汀
追风的羽汀
全部文章
分类
归档
标签
去牛客网
登录
/
注册
追风的羽汀的博客
全部文章
(共10篇)
题解 | 字符串构造判定
#include <unordered_map> #include <unordered_set> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2025-08-05
0
49
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <bits/stdc++.h&g...
2025-08-04
0
59
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <set> class Solu...
2025-08-04
0
67
题解 | 小苯的比赛上分
#include <bits/stdc++.h> #include <queue> #include <vector> using namespace std; int main() { int n,m; cin >> n >&...
2025-08-01
0
61
题解 | 队列消数
#include <queue> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param tickets int整型vector ...
2025-07-30
0
67
题解 | 旺仔哥哥转圈圈
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算出旺仔哥哥最后会站在哪位小朋友旁边 * @param a int整型vector 第 i 个小朋友的数字...
2025-07-27
0
76
题解 | 最厉害的学生
#include <iostream> #include <bits/stdc++.h> using namespace std; struct Student { string name; int a; int b; int c; ...
2025-07-26
0
69
题解 | 无限长正整数排列字符串
#include <iostream> #include <string> using namespace std; int findNthDigit(int n) { int digit = 1; // 当前数字的位数 long start = ...
2025-07-16
0
48
题解 | 扫雷
#include <iostream> using namespace std; int main() { int n, m; cin >> n >> m; char lei[n][m]; // 读取输入矩阵 f...
2025-07-16
0
62
题解 | 杨辉三角
#include <iostream> #include <bits/stdc++.h> #include <vector> using namespace std; int main() { int n; cin >> n; ...
2025-07-16
1
77