题解 1015: [编程入门]求和训练 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a = 0; int b = 0; int c = 0; cin >> a >> …… 题解列表 2021年05月15日 0 点赞 0 评论 210 浏览 评分:0.0
直接把输出结果就行。 摘要:解题思路:把参考结果输出注意事项:无参考代码:#include"iostream"using namespace std;int main(){ cout << "1/40,3/40,7/40,9/4…… 题解列表 2021年05月15日 0 点赞 0 评论 165 浏览 评分:0.0
杨辉三角(c++)(新手) 摘要:解题思路:首先获取 1-30 的所有的数据在输出.注意事项:参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespac…… 题解列表 2021年05月15日 0 点赞 0 评论 607 浏览 评分:9.9
01背包问题--C语言--动态规划--滚动数组(空间优化) 摘要:[普通动态规划解法请参照我的上一个题解](https://blog.dotcpp.com/a/78991),这里着重讲优化 ```c #include #include using n…… 题解列表 2021年05月15日 0 点赞 0 评论 526 浏览 评分:7.3
蓝桥杯算法提高-矩阵转置 摘要:解题思路:写出一个二维数组,然后将数组的行与列调换注意事项:参考代码:#include <stdio.h>int main(){ int n, m,i,j; scanf("%d%d", &n, &m)…… 题解列表 2021年05月15日 0 点赞 0 评论 486 浏览 评分:6.5
2086: 蓝桥杯算法提高VIP-最长公共子序列--C语言(动态规划) 摘要:```c #include #include #include using namespace std; char a[1005],b[1005]; int dp[1005][1005];…… 题解列表 2021年05月15日 0 点赞 1 评论 826 浏览 评分:9.9
三个数最大值(C++) 摘要:解题思路:题目需要对三个数进行比较,既然已经确定了比较的变量的个数,就可以直接定义三个整型变量,然后用cin读入三个数据,进行比较找出最大的那个变量,最后输出最大的这个变量的值就可以了注意事项:不像之…… 题解列表 2021年05月14日 0 点赞 0 评论 170 浏览 评分:0.0
三个数字的排序 简单方法 秒懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d%d%d",&a,&b,&c); if(a>b) …… 题解列表 2021年05月14日 0 点赞 0 评论 520 浏览 评分:8.0
题解 1707: 数据结构-有向无环图的拓扑排序 摘要:#include<iostream> #include<stack> using namespace std; int n,topo[100]={0},indegree[100]={0},a[1…… 题解列表 2021年05月14日 0 点赞 0 评论 340 浏览 评分:9.9
题解 1072: 汽水瓶 摘要:解题思路:以二换一,当小于二时换不了,大于二时分解为n个二。问题求:换过来的汽水瓶。参考代码:#include <stdio.h>#include <stdlib.h>int main(){ …… 题解列表 2021年05月14日 0 点赞 0 评论 350 浏览 评分:0.0