蓝桥杯算法提高VIP-去注释 C++ getline 做法 摘要:解题思路:我看题解都是用getchar的做法,因此发个不同的做法,丰富一下解题方式。注意事项:参考代码:#include<iostream> #include<string> using name…… 题解列表 2021年04月17日 0 点赞 0 评论 450 浏览 评分:0.0
C++版本——线下筛打表+数组优化处理 摘要: #include using namespace std; #define INF 1500000 //素数公式(高级啊) π(x) ~ x/lnx …… 题解列表 2021年04月17日 0 点赞 0 评论 779 浏览 评分:0.0
菜鸡的题解018——传纸条 摘要:双线程DP问题,f[i][j][k][l]代表a走到i,j位置,b走到k,l位置的最大值。状态转移方程:f[i][j][k][l]=max(max(max(f[i-1][j][k-1][l],f[i]…… 题解列表 2021年04月17日 0 点赞 0 评论 428 浏览 评分:0.0
C++版本——低耦合模拟 摘要:```cpp #include using namespcae std; int a[105][105]; int row,cal; int cnt = 0; //根据字母移动 vo…… 题解列表 2021年04月17日 0 点赞 0 评论 472 浏览 评分:0.0
DFS,路径中都出现的节点判断依据为:该节点在所有路径中出现的个数==路径数 摘要:解题思路:关键点=所有路径中都出现的节点的数目-2 所有路径中都出现的节点判断依据为:该节点在所有路径中出现的个数==路径数 (即未出现在所有路径的节点 其一共出现的次数一定小于路径数)注意事项:…… 题解列表 2021年04月17日 0 点赞 0 评论 480 浏览 评分:0.0
菜鸡的题解019——入学考试 摘要:类型题,01背包问题。附一个自认为讲的很好的视频https://www.bilibili.com/video/BV1kp4y1e794参考代码:#include<iostream> #include…… 题解列表 2021年04月17日 0 点赞 0 评论 523 浏览 评分:0.0
模拟麻烦 找规律 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <math.h>using namespace std;int a[100…… 题解列表 2021年04月17日 0 点赞 0 评论 423 浏览 评分:0.0
二级C语言-成绩归类 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int a,num1=0,num2 = 0,num3 = 0; while (scanf("%d", &a) && a>…… 题解列表 2021年04月17日 0 点赞 0 评论 415 浏览 评分:0.0
迷宫问题BFS解法 摘要:```cpp 利用队列的方法做 #include using namespace std; const int N=110; char a[N][N];//该数组用来接收字符 int …… 题解列表 2021年04月17日 0 点赞 0 评论 489 浏览 评分:0.0
python解出来了 摘要:解题思路:注意事项:参考代码:ls=[]ls = list(input().strip().split())z = len(ls[0])b = 0for i in ls: if len(i) >…… 题解列表 2021年04月17日 0 点赞 0 评论 474 浏览 评分:0.0