牛客596495425号
牛客596495425号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客596495425号的博客
全部文章
(共74篇)
题解 | 连通图
#include <iostream> using namespace std; const int N = 1010; int p[N]; int find(int x) { if (p[x] != x)p[x] = find(p[x]); return p[x]; ...
2025-03-19
0
18
题解 | 素数判定
#include <iostream> using namespace std; int main() { int n; while(cin>>n){ if(n==1){ puts("no"); ...
2025-03-18
0
18
题解 | 最大公约数
#include <iostream> using namespace std; //模板题--欧几里得算法 int gcd(int a,int b){ return b?gcd(b,a%b):a; } int main() { int a, b; cin>...
2025-03-18
0
20
题解 | 众数
#include <iostream> #include<string> #include<map> #include<algorithm> using namespace std; const int N =25; int a[N]; int co...
2025-03-18
0
17
题解 | 魔咒词典
#include <iostream> #include<map> #include<string> using namespace std; //把魔咒一整个的存下来 map<string, string>dic; int main() { ...
2025-03-18
0
14
题解 | 最大连续子序列
#include <iostream> #include<cstring> using namespace std; const int MIN = 0xc0c0c0c0; const int N = 10010; int f; int a[N]; int main() {...
2025-03-18
0
18
题解 | 毕业bg
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include<vector> #include<algorithm> using namespace std; struct student; int n;...
2025-03-18
0
15
题解 | Sharing
#include <iostream> #include <cstring> #include <algorithm> #include <unordered_map> using namespace std; struct node { in...
2025-03-17
0
15
题解 | 2的幂次方
#include <iostream> #include <cstring> #include <algorithm> #include<vector> #include<string> using namespace std; //直接...
2025-03-17
0
25
题解 | Sum of Factorials
//因为10的阶乘就已经很大了,所以阶乘能选的数字很少 #include <iostream> #include <cstring> #include <algorithm> using namespace std; //还有个0的阶乘别忘了所以有两个1可以用 ...
2025-03-17
0
17
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页