十->二进制转换(数组 模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>#include<cmath>#include<cstring>using&nbs…… 题解列表 2025年02月02日 0 点赞 0 评论 632 浏览 评分:0.0
剔除相关数(字典) 摘要:解题思路: 字典排重 排序输出注意事项:参考代码:#include<iostream>#include<algorithm>#include<map&…… 题解列表 2025年01月29日 0 点赞 0 评论 428 浏览 评分:0.0
内码对称(移位 数组 回文) 摘要:解题思路:移位 数组 回文注意事项:参考代码:#include<iostream>#include<iomanip>usingnamespace…… 题解列表 2025年01月29日 0 点赞 0 评论 316 浏览 评分:0.0
做幻方(模拟) 摘要:解题思路:模拟注意事项:宽度设置参考代码:#include<iostream>#include<iomanip>usingnamespace&n…… 题解列表 2025年01月29日 0 点赞 0 评论 374 浏览 评分:0.0
假币问题(模拟,分治) 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&…… 题解列表 2025年01月29日 2 点赞 0 评论 489 浏览 评分:0.0
倒杨辉三角形(递推) 摘要:解题思路:递推注意事项:参考代码:#include<iostream>#include<iomanip>usingnamespacestd;…… 题解列表 2025年01月29日 0 点赞 0 评论 432 浏览 评分:0.0
作业调度方案(模拟) 摘要:解题思路: 模拟注意事项:参考代码:#include<iostream>usingnamespacestd;constintN&nb…… 题解列表 2025年01月28日 0 点赞 0 评论 365 浏览 评分:0.0
二维数组求解多状态dp 多状态dp题目说了**跑or休息**有点01背包的感觉就是在暗示**二维数组求解**然后是我们熟悉的动规三部曲先定义状态这里dp[i][j]我表示在第i分钟j疲倦度下的最大路程然后是状态转移方程了既然是多状态那么一定要细心读题目题目说跑or休息所以我立刻想到dp[i][j]=max(dp[i][j], 题解列表 2025年01月28日 2 点赞 0 评论 543 浏览 评分:6.0
内部收益率题解 解题思路:根据公式初步构造相关变量,其次用程序编写出公式表达式,再根据题意进行适当补充。注意事项:注意NPV的取值范围,应该是大于-1,然后可以分析得知该公式单调递减,因此无需考虑Toomany的情况参考代码:#include#include#include 题解列表 2025年01月27日 2 点赞 0 评论 637 浏览 评分:10.0 A*B问题的题解 摘要:#include<iostream>usingnamespacestd;intmain(){&nbs…… 题解列表 2025年01月26日 1 点赞 0 评论 521 浏览 评分:10.0 « 12...82838485868788...16491650 »
A*B问题的题解 摘要:#include<iostream>usingnamespacestd;intmain(){&nbs…… 题解列表 2025年01月26日 1 点赞 0 评论 521 浏览 评分:10.0