编写题解 1955: 贷款计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int cal(int a ,float b ,int c ,int d){ int pb = 0; while(d--) …… 题解列表 2021年05月16日 0 点赞 0 评论 1150 浏览 评分:7.0
简单易懂...... 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string a,b; c…… 题解列表 2021年05月16日 0 点赞 0 评论 375 浏览 评分:0.0
利用循环来解决汽水瓶问题 摘要:解题思路:一个整数n,首先设置一个对三取余的变量 yushu,对3整除的变量zhengshu,还有一个存储总共可以喝到的汽水的总数sum。n/3是原本就可以喝到的汽水数量,n%3是剩下的瓶数,sum+…… 题解列表 2021年05月15日 0 点赞 0 评论 423 浏览 评分:0.0
求素数(基础算法,适合初学人群) 摘要:解题思路: 该数与2取余,若余数!=0,则为素数注意事项:(1)素数即质数(只有1和它本身两个因数) (2)2可被2整除,但2为素数。参考代码:#include<iostre…… 题解列表 2021年05月15日 0 点赞 0 评论 459 浏览 评分:8.0
题解 1015: [编程入门]求和训练 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a = 0; int b = 0; int c = 0; cin >> a >> …… 题解列表 2021年05月15日 0 点赞 0 评论 360 浏览 评分:0.0
直接把输出结果就行。 摘要:解题思路:把参考结果输出注意事项:无参考代码:#include"iostream"using namespace std;int main(){ cout << "1/40,3/40,7/40,9/4…… 题解列表 2021年05月15日 0 点赞 0 评论 299 浏览 评分:0.0
杨辉三角(c++)(新手) 摘要:解题思路:首先获取 1-30 的所有的数据在输出.注意事项:参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespac…… 题解列表 2021年05月15日 0 点赞 0 评论 762 浏览 评分:9.9
01背包问题--C语言--动态规划--滚动数组(空间优化) 摘要:[普通动态规划解法请参照我的上一个题解](https://blog.dotcpp.com/a/78991),这里着重讲优化 ```c #include #include using n…… 题解列表 2021年05月15日 0 点赞 0 评论 766 浏览 评分:7.3
蓝桥杯算法提高-矩阵转置 摘要:解题思路:写出一个二维数组,然后将数组的行与列调换注意事项:参考代码:#include <stdio.h>int main(){ int n, m,i,j; scanf("%d%d", &n, &m)…… 题解列表 2021年05月15日 0 点赞 0 评论 602 浏览 评分: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 评论 1077 浏览 评分:9.9