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