题解列表
编写题解 1955: 贷款计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int cal(int a ,float b ,int c ,int d){ int pb = 0; while(d--) ……
简单易懂......
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string a,b; c……
利用循环来解决汽水瓶问题
摘要:解题思路:一个整数n,首先设置一个对三取余的变量 yushu,对3整除的变量zhengshu,还有一个存储总共可以喝到的汽水的总数sum。n/3是原本就可以喝到的汽水数量,n%3是剩下的瓶数,sum+……
求素数(基础算法,适合初学人群)
摘要:解题思路: 该数与2取余,若余数!=0,则为素数注意事项:(1)素数即质数(只有1和它本身两个因数) (2)2可被2整除,但2为素数。参考代码:#include<iostre……
题解 1015: [编程入门]求和训练
摘要:参考代码:#include<iostream>using namespace std;int main(){ int a = 0; int b = 0; int c = 0; cin >> a >> ……
直接把输出结果就行。
摘要:解题思路:把参考结果输出注意事项:无参考代码:#include"iostream"using namespace std;int main(){ cout << "1/40,3/40,7/40,9/4……
杨辉三角(c++)(新手)
摘要:解题思路:首先获取 1-30 的所有的数据在输出.注意事项:参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespac……
01背包问题--C语言--动态规划--滚动数组(空间优化)
摘要:[普通动态规划解法请参照我的上一个题解](https://blog.dotcpp.com/a/78991),这里着重讲优化
```c
#include
#include
using n……