自由的风0450
自由的风0450
全部文章
分类
归档
标签
去牛客网
登录
/
注册
自由的风0450的博客
全部文章
(共125篇)
题解 | 降温(easy)
模拟未知温度,计算寒潮天数 #include <iostream> #include<vector> using namespace std; const int INF=-999; const int MIN_T=-50; const int MAX_T=50; int ...
2025-12-07
0
27
题解 | 小红的删数字
sum为所有位数模3的和,cnt[i]为非0数位模3后为i的个数。1.小红操作时,如果非0数位只有1个,小红输;cnt[sum]!=0时,小红可以删除,反之必输。2.小紫操作时,cnt[1] == 0 && cnt[2] == 0 && cnt[0] == 0没有非零...
2025-12-06
2
37
题解 | 【模板】整数域二分
#include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { ios::sync_with_stdio(false); cin...
2025-12-05
0
28
题解 | eli和字符串
利用二维数组记录每个字母的位置,进而可得子链长度 #include <iostream> #include<string> #include<vector> #include<climits> using namespace std; int mai...
2025-12-05
0
29
题解 | 游戏机本当下手
统计每个连续段的长度 #include<iostream> #include<vector> #include<string> using namespace std; int main() { ios::sync_with_stdio(false); ci...
2025-12-05
0
22
题解 | A+B Problem
#include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { int n; cin>>n; vector&...
2025-12-05
0
25
题解 | 质数统计
素数筛+前缀和 #include <iostream> #include<vector> using namespace std; const int MAX=1e6; int main() { ios::sync_with_stdio(false); ci...
2025-12-04
0
23
题解 | 小红的数组
#include <iostream> #include<vector> #include<algorithm> #include<unordered_map> using namespace std; typedef long long ll; i...
2025-12-03
0
31
题解 | 小红统计区间(easy)
#include <iostream> #include<vector> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; ...
2025-12-03
0
22
题解 | 游游的字符重排
DFS枚举并回溯 #include <iostream> #include<string> #include<vector> using namespace std; int cnt=0; vector<int>freq; int n; void b...
2025-12-03
0
30
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页