自由的风0450
自由的风0450
全部文章
分类
归档
标签
去牛客网
登录
/
注册
自由的风0450的博客
全部文章
(共125篇)
题解 | 小红走象步
#include <iostream> #include<queue> #include<vector> using namespace std; struct Node{ int x,y,step; Node(int x_,int y_,int...
2025-12-02
0
23
题解 | 小红的 gcd
先对大整数取模,再进行辗转相除法 #include <iostream> #include<string> using namespace std; long long mod(const string&s,long long b){ long long r...
2025-12-02
2
33
题解 | 岛屿数量
#include <iostream> #include<vector> using namespace std; const int dirs[8][2]={{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}}; v...
2025-12-01
0
23
题解 | 隔板与水槽
枚举左右两侧最大容积,相加得最大容积 #include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { ios::sync_with_st...
2025-12-01
0
27
题解 | 小红的rpg游戏
使用BFS #include <iostream> #include<vector> #include<queue> #include<string> using namespace std; struct State{ int x,y,hp...
2025-12-01
0
27
题解 | 小红的数组选数
所有子集的数量为2^n;直接枚举,找出所有可能 #include<iostream> #include<vector> using namespace std; int main() { int n; long long k; cin>>...
2025-12-01
0
20
题解 | 构造数独
令对角线为K #include <iostream> using namespace std; int main() { int n,k; cin>>n>>k; for(int i=0;i<n;i++){ for(i...
2025-12-01
0
25
题解 | 【模板】Nim游戏
尼姆博弈,计算异或和 #include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin>&...
2025-11-30
0
22
题解 | 【模板】扩展巴什博弈
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin>>t; w...
2025-11-30
0
17
题解 | 【模板】巴什博弈
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin>>t; w...
2025-11-29
0
27
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页