czcczz
czcczz
全部文章
分类
归档
标签
去牛客网
登录
/
注册
czcczz的博客
全部文章
(共19篇)
题解 | 弹珠游戏
因为一共16个弹珠位,每个位置两种可能,一共有2^16=65536种,状态记忆化搜索加减枝枚举各个状态 然后这个棱形映射成正方形更方便搜索 #include<bits/stdc++.h> using namespace std; #define endl '\n' int pos[16]...
2026-04-23
0
13
题解 | 连分数
#include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while(t--) { int p,q; cin>>...
2026-03-09
0
36
题解 | 多米诺骨牌
#include<bits/stdc++.h> using namespace std; #define int long long const int N=2e5+10; pair<int,int> gu[N]; int n,m; signed main() { ...
2026-03-05
0
44
题解 | 子段和
#include<bits/stdc++.h> using namespace std; #define int long long const int N=5e5+10; int a[N]; signed main() { int n; cin>>n; ...
2026-03-03
0
39
题解 | 小猫排队
#include<bits/stdc++.h> using namespace std; #define int long long int n; const int N=2e5+10; int a[N]; signed main() { cin>>n; ...
2025-12-22
0
70
题解 | 游游的字母翻倍
#include<bits/stdc++.h> using namespace std; int n,q; string ss; int main() { cin>>n>>q; cin>>ss; while(q--) {...
2025-12-16
0
48
题解 | 旅游
#include<bits/stdc++.h> using namespace std; #define int long long const int N=4e4+10,M=2e4+10; int n,m,c; int f[N]; struct Way{ int dis; int ...
2025-11-19
0
69
题解 | 奶牛排排站
#include<bits/stdc++.h> using namespace std; #define int long long int n,k; const int N=25; int fac[N]; void init_fac() { fac[0]=1; for(...
2025-11-18
0
69
题解 | 收集纸片
#include<bits/stdc++.h> using namespace std; const int N=25; int mp[N][N]; int n; int minlen=0x3f3f3f3f; int res; int x,y; pair<int,int> p...
2025-11-17
0
59
题解 | 小红的扫雷游戏
#include<bits/stdc++.h> using namespace std; const int N=6; char mp[N][N]; bool vis[N][N]; bool if_X[N][N]; int num_X[N][N]; int ssum; void dfs...
2025-11-17
0
76
首页
上一页
1
2
下一页
末页