永恒学者
永恒学者
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
永恒学者的博客
全部文章
(共38篇)
题解 | 小红的正整数构造
//算法练习No.14 #include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int l,r,x; int y{-1...
2026-02-05
0
69
题解 | 小红的正整数构造
//算法练习No.14 #include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int l,r,x; int y{-1...
2026-02-05
0
75
题解 | 旺仔哥哥转圈圈
//算法练习No.12 //模拟+循环 //使用找循环节优化代码 用于跳出重复循环 #include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2026-02-04
0
53
题解 | 幂次进近
//算法练习No.9 //数学构造+边界处理 #include <iostream> #include <cmath> using namespace std; typedef __int128_t int128; void solve() { long long...
2026-02-04
0
58
题解 | 分数线划定
//算法练习 No.8 //vector+struct+自定义排序 #include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace...
2026-02-03
0
56
题解 | 特殊的科学计数法
//算法练习 No.6 #include<bits/stdc++.h> #include <string> using namespace std; void solve() { string s; cin >> s; int len = s...
2026-02-02
0
47
题解 | 数颜色
//我的算法练习 5 #include <bits/stdc++.h> using namespace std; void solve() { string s; int R{0}; int G{0}; int B{0}; cin >...
2026-02-02
0
52
题解 | 躲藏
//算法学习第四题,DP #include <bits/stdc++.h> using namespace std; //using ll=long long; const long long MOD = 2000120420010122; //int 最大只有 $2 \times 1...
2026-02-02
0
50
题解 | 田忌赛马
//穷举 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int v[3],a[3]; for(s...
2026-02-01
0
32
题解 | 贪吃蛇游戏
#include <bits/stdc++.h> #include <cstddef> using namespace std; using ll = long long; deque<pair<int,int>> snake; pair<i...
2026-01-30
0
40
首页
上一页
1
2
3
4
下一页
末页