2544:N内求和两种方法 摘要:方法1 for循环#include <iostream>using namespace std;int main() { int n; cin >> n; int num = …… 题解列表 2025年11月01日 0 点赞 0 评论 192 浏览 评分:0.0
Manacher算法O(n)时间复杂度求解回文子串 摘要:算法基础:**manacher算法**(叫**马拉车算法**太Low了😂)manacher算法是一个很质朴的算法,通俗来讲就是“**已掌握信息能用就用,不能用就中心扩展**”,我认为只要看透这个递…… 题解列表 2025年11月01日 1 点赞 0 评论 180 浏览 评分:10.0
题解2808买房子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b;&n…… 题解列表 2025年10月31日 0 点赞 0 评论 126 浏览 评分:0.0
适合新手的题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double b;i…… 题解列表 2025年10月30日 0 点赞 0 评论 133 浏览 评分:2.0
人口增长问题题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 1 点赞 0 评论 180 浏览 评分:10.0
乘方计算题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 1 点赞 0 评论 185 浏览 评分:10.0
c++使用bool变量的简便方法 摘要:#include <iostream>using namespace std;int main() { int a; cin >> a; bool con3 = (a % 3 …… 题解列表 2025年10月27日 2 点赞 0 评论 168 浏览 评分:7.0
编写题解 3030: 全排列 摘要:非常简单的深搜:```cpp#include#pragma GCC optimize("O2")#pragma G++ optimize("O2")//#pragma GCC …… 题解列表 2025年10月26日 0 点赞 0 评论 182 浏览 评分:0.0
编写题解 3107: 最短路径(shopth) 摘要:```cpp//有点意思#include #include using namespace std;const int INF=0x3f3f3f3f;struct Node{…… 题解列表 2025年10月26日 0 点赞 0 评论 151 浏览 评分:0.0
数字三角形(DP) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;//定义常量N,用于限制三角…… 题解列表 2025年10月26日 0 点赞 0 评论 167 浏览 评分:0.0