posted @ 2026-03-01 19:53 贾普鲁登 阅读(3) 评论(0) 推荐(0)
摘要:
H-Tic Tac DREAMIN’_2026牛客寒假算法基础集训营3 1 #include <bits/stdc++.h> 2 using namespace std; 3 double dis(double x1,double x2,double y1,double y2) 4 { 5 retu 阅读全文
摘要:
J-终于再见_2026牛客寒假算法基础集训营2 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 /* 6 简单的思路:BFS 7 枚举每一个点,并以该点为起点进行广搜,若搜到繁华度比他高的城市即返回搜索的层数即 阅读全文
posted @ 2026-03-01 17:56 贾普鲁登 阅读(5) 评论(0) 推荐(0)
摘要:
H-权值计算_2026牛客寒假算法基础集训营2 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 /* 6 伪代码意为计算对于[l,r]的数组,逐个取出元素计算其前所有不重复数的个数 7 例: 8 1 2 3 - 阅读全文
posted @ 2026-03-01 15:31 贾普鲁登 阅读(3) 评论(0) 推荐(0)
摘要:
1 #include <bits/stdc++.h> 2 using namespace std; 3 int cz[2000],flag = 0; 4 void f(int a,int b,int c,int d,int cnt) 5 { 6 if(cnt > 20 || flag == 1) r 阅读全文
posted @ 2026-02-14 14:33 贾普鲁登 阅读(3) 评论(0) 推荐(0)
摘要:
F-智乃的算法竞赛群友_2026牛客寒假算法基础集训营5 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 long long T,n,a,b,fivesix,ans,leave,dp[250]; 6 cin > 阅读全文
posted @ 2026-02-13 10:18 贾普鲁登 阅读(3) 评论(0) 推荐(0)
摘要:
C-墨提斯的排列_2026牛客寒假算法基础集训营4 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 long long n; 6 cin >> n; 7 n = pow(2,n); 8 /* 9 十进制转格雷码 阅读全文
posted @ 2026-02-11 11:49 贾普鲁登 阅读(3) 评论(0) 推荐(0)
摘要:
G-Digital Folding_2026牛客寒假算法基础集训营1 1 #include <bits/stdc++.h> 2 using namespace std; 3 inline long long renum(string s,int l) 4 { 5 long long pi = 1,a 阅读全文
posted @ 2026-02-06 20:20 贾普鲁登 阅读(4) 评论(0) 推荐(0)
摘要:
F-x?y?n!_2026牛客寒假算法基础集训营2 1 #include <bits/stdc++.h> 2 using namespace std; 3 void solve(int n) 4 { 5 bool x[40],y[40],flag = 0; 6 long long ansx = 0, 阅读全文
posted @ 2026-02-06 18:59 贾普鲁登 阅读(5) 评论(0) 推荐(0)
摘要:
A-A+B Problem_2026牛客寒假算法基础集训营1 1 #include <bits/stdc++.h> 2 using namespace std; 3 long long p[10],q[10],num[10]; 4 const long long m = 998244353; 5 l 阅读全文
posted @ 2026-02-06 18:40 贾普鲁登 阅读(6) 评论(0) 推荐(0)
浙公网安备 33010602011771号