明明的随机数(一点都不随机) 摘要:先去重后排序 #include #include int main() { int n,i,j; scanf("%d",&n); …… 题解列表 2024年03月20日 0 点赞 0 评论 530 浏览 评分:9.9
sort排序自定义 摘要:#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; int n, m; struct node { …… 题解列表 2024年03月20日 0 点赞 0 评论 438 浏览 评分:9.9
编写题解2809: 菲波那契数列,python超简单 摘要:# 获取用户输入并转换为整数 k = int(input()) # 检查输入是否为1或2,因为斐波那契数列的前两项都是1 if k == 1 or k == 2: …… 题解列表 2024年03月20日 2 点赞 0 评论 665 浏览 评分:9.9
Java 利用滑块的思想解决子矩阵问题 摘要:解题思路: 吃水不忘挖井人: 参考了大佬Python的思路: https://blog.csdn.net/m0_64126000/article/details/134337023 …… 题解列表 2024年03月20日 0 点赞 0 评论 953 浏览 评分:9.9
十->二进制转换 摘要: 有点复杂哈,主要是格式问题 #include int main() { int n; while((scanf("%d",&n))!=E…… 题解列表 2024年03月20日 0 点赞 0 评论 464 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-整数删除 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>#include<vector>using namespace std;using ll = long …… 题解列表 2024年03月20日 2 点赞 0 评论 1429 浏览 评分:9.9
二维数组线性dp(C++) 摘要:#include using namespace std; const int N = 110; int f[N][N]; int a[N][N]; int main() { int …… 题解列表 2024年03月20日 0 点赞 0 评论 336 浏览 评分:9.9
矩阵最大值c++ 摘要:```cpp #include using namespace std; int main() { int m, n; int a[101][101]; whi…… 题解列表 2024年03月20日 0 点赞 0 评论 855 浏览 评分:9.9
信息学奥赛一本通T1255-迷宫问题 摘要:解题思路:使用宽度优先搜索解题注意事项:题目测试数据不好,一定要使用{ { -1, 0 }, { 0, -1 }, { 1, 0 }, { 0, 1 } };这个顺序不然会报答案错误.参考代码:imp…… 题解列表 2024年03月21日 0 点赞 0 评论 478 浏览 评分:9.9
动态规划求最长下降子序列和最长上升子序列 摘要:#include <bits/stdc++.h> using namespace std; const int N = 30000 + 10; int a[N], f1[N], f2[N…… 题解列表 2024年03月21日 1 点赞 0 评论 465 浏览 评分:9.9