新手写水仙花数判断(c++已过) 摘要:解题思路:由于确定为三位数,所以直接求各位数字即可注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=10…… 题解列表 2024年11月08日 1 点赞 0 评论 480 浏览 评分:0.0
新手写求和问题(c++) 摘要:解题思路:利用三个循环来控制三种类型求和注意事项:利用fixed<<setprecision(2)来设置精度参考代码:#include<iostream>#include<iomanip>using …… 题解列表 2024年11月08日 1 点赞 0 评论 241 浏览 评分:0.0
2937: 短信计费 摘要:解题思路:注意事项:注意刚好能被70除的情况就行参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ i…… 题解列表 2024年11月08日 0 点赞 0 评论 206 浏览 评分:0.0
汽水瓶,简单递归法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量,用于记录最终结果,及换了多少汽水喝 int c=0; v…… 题解列表 2024年11月07日 0 点赞 1 评论 166 浏览 评分:9.9
每一行都有解释的c++代码(组合的输出) 摘要:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话在前面加上std::int m, n;//定义两个变量用于承载…… 题解列表 2024年11月07日 1 点赞 0 评论 384 浏览 评分:7.3
T1267-01背包问题 摘要:解题思路:滚动数组—— 一维dp数组遍历:for( ) 物品 for( 逆序) 背包递推公式: dp[ j ] = max( dp[ j ] , dp[ j -w[ i ] ] + …… 题解列表 2024年11月07日 0 点赞 0 评论 144 浏览 评分:0.0
信息学奥赛一本通T1173-阶乘和--运用高精度乘法与加法:计算n的阶乘和 摘要:解题思路:因为n<=50;当n>20最大存储整数类型long long也存储不下,导致造成数据溢出。所以运用高精度乘法与加法计算n的阶乘和参考代码:#include <iostream>#includ…… 题解列表 2024年11月07日 0 点赞 0 评论 369 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ int k, n; dou…… 题解列表 2024年11月07日 0 点赞 0 评论 143 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int L,M; cin>>L>>M; …… 题解列表 2024年11月07日 1 点赞 0 评论 288 浏览 评分:0.0
信息学奥赛一本通T1589-不要 62 数位dp 摘要: #include using namespace std; int l,r; int f[11][11]; void init(){ …… 题解列表 2024年11月07日 0 点赞 0 评论 215 浏览 评分:9.9