icepointboy
icepointboy
全部文章
分类
归档
标签
去牛客网
登录
/
注册
icepointboy的博客
全部文章
(共32篇)
题解 | 小红的字符串修改
#include <iostream> #include<string> #include<climits> using namespace std; int main() { string s, t; cin >> s >&g...
2025-09-13
0
33
题解 | 田忌赛马
#include <iostream> #include<algorithm> #include<vector> #include<set> using namespace std; int main() { vector<int>...
2025-09-11
0
42
题解 | 贪吃蛇游戏
#include <bits/stdc++.h> using namespace std; using ll = long long; deque<pair<int,int>> snake; bool moveSnake(int dir) { // T...
2025-09-02
0
40
题解 | 小苯的比赛上分
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n,m,x,y,max=0; ci...
2025-09-02
0
42
题解 | 两端问优先队列
#include <iostream> #include<set> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n,op,x...
2025-09-02
0
41
题解 | 两数之和
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2025-09-02
0
43
题解 | 插队
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n,m; cin>>n&g...
2025-09-02
0
34
题解 | 链表相交
ListNode* getIntersectionNode(ListNode* headA, ListNode* headB) { // 在这里补充代码 ListNode* p1 = headA; ListNode* p2 = headB; int k = 0; whi...
2025-09-02
0
23
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-09-02
0
19
题解 | 两数之和
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2025-08-30
0
31
首页
上一页
1
2
3
4
下一页
末页