剑绝尘
剑绝尘
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
剑绝尘的博客
全部文章
(共69篇)
题解 | 小红的双生串
#include <bits/stdc++.h> using namespace std; unordered_map<char,int> mp1,mp2; int ma1 = -1,ma2 = -1; int main() { string str; c...
2025-04-14
0
36
题解 | 自守数
#include <bits/stdc++.h> using namespace std; int main() { int n;cin>>n; int ans = 0; for(int i = 0;i<=n;i++){ lo...
2025-04-14
0
39
题解 | #小苯的蓄水池(并查集)#
#include <bits/stdc++.h> using namespace std; const int N = 2e5+10; int n,m; int f[N]; double x; struct node{ double sum; int cnt; ...
C++
2024-11-03
0
133
题解 | #【模板】完全背包#
#include <bits/stdc++.h> using namespace std; const int N = 1010; int n,V,v[N],w[N],dp1[N],dp2[N]; int main(){ cin>>n>>V; ...
2024-10-27
0
113
题解 | #【模板】01背包#
#include <bits/stdc++.h> using namespace std; const int N = 1010; int n,V,v[N],w[N],dp1[N],dp2[N]; int main(){ cin>>n>>V; ...
2024-10-27
0
108
题解 | #迭代器遍历容器#
#include <bits/stdc++.h> // write your code here...... using namespace std; vector <int> v; int main() { int x; for(int i=0;i&l...
2024-04-20
1
243
题解 | #【模板】单源最短路1#
#include <iostream> #include <cstring> #include <queue> using namespace std; typedef long long LL; const int N = 5050; struct edg...
2024-01-30
0
250
题解 | #N皇后问题#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 the n * @return int整型 */ const int N =20; bool lie[N],dg[N],udg[N]; int count...
2024-01-15
1
295
题解 | #判断身材状态#
#include <iostream> #include <vector> using namespace std; int main() { vector <double> m; vector <double> kg; ...
2024-01-13
2
270
题解 | #获取三个数中的最大值(三元表达式实现)#
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a; cin >> b; cin >> c; //...
2024-01-13
1
260
首页
上一页
1
2
3
4
5
6
7
下一页
末页