自由的风0450
自由的风0450
全部文章
分类
归档
标签
去牛客网
登录
/
注册
自由的风0450的博客
全部文章
(共113篇)
题解 | 【模板】整数域二分
#include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { ios::sync_with_stdio(false); cin...
2025-12-05
0
22
题解 | eli和字符串
利用二维数组记录每个字母的位置,进而可得子链长度 #include <iostream> #include<string> #include<vector> #include<climits> using namespace std; int mai...
2025-12-05
0
20
题解 | 游戏机本当下手
统计每个连续段的长度 #include<iostream> #include<vector> #include<string> using namespace std; int main() { ios::sync_with_stdio(false); ci...
2025-12-05
0
19
题解 | A+B Problem
#include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { int n; cin>>n; vector&...
2025-12-05
0
19
题解 | 质数统计
素数筛+前缀和 #include <iostream> #include<vector> using namespace std; const int MAX=1e6; int main() { ios::sync_with_stdio(false); ci...
2025-12-04
0
18
题解 | 小红的数组
#include <iostream> #include<vector> #include<algorithm> #include<unordered_map> using namespace std; typedef long long ll; i...
2025-12-03
0
19
题解 | 小红统计区间(easy)
#include <iostream> #include<vector> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; ...
2025-12-03
0
20
题解 | 游游的字符重排
DFS枚举并回溯 #include <iostream> #include<string> #include<vector> using namespace std; int cnt=0; vector<int>freq; int n; void b...
2025-12-03
0
24
题解 | 小红走象步
#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
20
题解 | 小红的 gcd
先对大整数取模,再进行辗转相除法 #include <iostream> #include<string> using namespace std; long long mod(const string&s,long long b){ long long r...
2025-12-02
2
27
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页