自由的风0450
自由的风0450
全部文章
分类
归档
标签
去牛客网
登录
/
注册
自由的风0450的博客
全部文章
(共113篇)
题解 | 小红的整数配对
从大到小排序,积分最大 #include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { ios::sync_with_stdio(fal...
2025-12-09
0
23
题解 | 没有上司的舞会
树形动态规划 #include <iostream> #include<vector> #include<algorithm> using namespace std; using ll=long long; const int MAXN=2e5+5; vect...
2025-12-09
0
22
题解 | 谐距下标对
统计a[i]-i的数量,利用组合数计算谐距下标对数 #include <iostream> #include<vector> #include<unordered_map> using namespace std; int main() { ios::s...
2025-12-08
0
19
题解 | 小红背单词
#include <iostream> #include<string> #include<unordered_map> using namespace std; int main() { ios::sync_with_stdio(false); ...
2025-12-08
0
19
题解 | 特殊的科学计数法
#include <iostream> #include<string> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string ...
2025-12-08
0
19
题解 | 数颜色
#include <iostream> #include<string> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int r=0...
2025-12-08
0
27
题解 | 九倍平方数
各个位相加为9的倍数可以被9整除,每个2可以增加2,每个3可以增加6 #include <iostream> #include<string> using namespace std; int main() { ios::sync_with_stdio(false)...
2025-12-08
0
24
题解 | 舞萌时间到!
前缀和 #include <iostream> #include<vector> #include<string> using namespace std; int main() { string s; cin>>s; s=&...
2025-12-08
0
24
题解 | 降温(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
23
题解 | 小红的删数字
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
29
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页