YouYeah
YouYeah
全部文章
分类
归档
标签
去牛客网
登录
/
注册
YouYeah的博客
全部文章
(共5篇)
题解 | 弹珠游戏
//使用0,1编码位置是否被占据,使用位运算进行搜索 #include<iostream> #include<vector> #include<unordered_map> using namespace std; //棋盘状态记录 vector<int&g...
2026-04-23
2
27
题解 | 小红树上染色
#include<iostream> #include<vector> using namespace std; const int mod(1e9 + 7); vector<vector<int>> rec; pair<long long in...
2026-04-16
1
60
题解 | 【模板】扩展巴什博弈
#include <iostream> using namespace std; bool existsPositiveOddNonStrict(int n, int l, int r) { if(n%(l+r)>=l){ return true; ...
2026-04-14
1
57
题解 | 【模板】巴什博弈
#include <iostream> using namespace std; bool existsPositiveOddNonStrict(int n, int r) { if(n%(r+1)==0){ return false; }else{ ...
2026-04-14
1
49
题解 | 矩阵最长递增路径
#include<vector> using namespace std; class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 递增路径的最大长度 * @para...
2026-04-09
1
76