刷牛客的高级磨洋工很愉快
刷牛客的高级磨洋工很愉快
全部文章
分类
归档
标签
去牛客网
登录
/
注册
刷牛客的高级磨洋工很愉快的博客
全部文章
(共20篇)
题解 | 贪吃蛇游戏
#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
8
题解 | 小苯的比赛上分
#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
8
题解 | 两端问优先队列
#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
9
题解 | 两数之和
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2025-09-02
0
10
题解 | 插队
#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
8
题解 | 链表相交
ListNode* getIntersectionNode(ListNode* headA, ListNode* headB) { // 在这里补充代码 ListNode* p1 = headA; ListNode* p2 = headB; int k = 0; whi...
2025-09-02
0
9
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-09-02
0
8
题解 | 两数之和
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2025-08-30
0
11
题解 | 无法吃午餐的学生数量
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param students int整型vector * @param sandwich...
2025-08-27
0
12
题解 | 栈和排序
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int> vec(n),re; for(int i=0;i<n...
2025-08-27
0
8
首页
上一页
1
2
下一页
末页