Hifipsysta-1173-计算球体积(C++代码) 摘要:```cpp #include #include using namespace std; float compute_volume(float r){ return (4.0/…… 题解列表 2022年02月05日 0 点赞 0 评论 419 浏览 评分:0.0
Hifipsysta-1164-数组的距离(C++代码)建立一个距离矩阵很简单 摘要:```cpp #include #include #include using namespace std; const int max_idx=1000; int arr_x[max…… 题解列表 2022年02月05日 0 点赞 0 评论 416 浏览 评分:0.0
Hifipsysta-1202-多输入输出练习1(C++代码) 摘要:```cpp #include #include #include using namespace std; bool arrange_rule(int a, int b){ …… 题解列表 2022年02月05日 0 点赞 0 评论 354 浏览 评分:0.0
Hifipsysta-1203-多输入输出练习2(C++代码)不能用cmath中的M_PI 摘要:```cpp #include #include using namespace std; const double PI=3.1415; double circle_area(doub…… 题解列表 2022年02月05日 0 点赞 0 评论 295 浏览 评分:0.0
Hifipsysta-1213题-幸运儿(C++)基于STL的循环链表 摘要:```cpp #include #include using namespace std; void print_lukky(int n){ list list_1; …… 题解列表 2022年02月05日 0 点赞 0 评论 516 浏览 评分:0.0
优质题解 Hifipsysta-1239-班级人数(C++代码)建立三个不等式,搜索符合条件的答案 摘要:##### 解题思路: 本题的思路是要找到一个最小的班级人数$$N$$,这个$$N$$满足如下条件: ① 给定一个比例的范围,存在某个整数$$n$$,使得$$n$$个人及格的及格率$$\frac{…… 题解列表 2022年02月05日 1 点赞 0 评论 656 浏览 评分:9.9
Hisipfysta-1171-蟠桃记(C++代码) 摘要:解题思路: ```math \begin{cases} a_1=1\\ a_2=2(a_1+1)=4\\ a_3=2(a_2+1)=10\\ \cdots\\ a_n=(a_{n-1}+…… 题解列表 2022年02月05日 0 点赞 0 评论 530 浏览 评分:9.9
Hifipsysta-1172-计算两点间的距离(C++代码) 摘要:```cpp #include #include using namespace std; double distance(double x1, double y1, double x2,…… 题解列表 2022年02月05日 0 点赞 0 评论 512 浏览 评分:0.0
Hifipsysta-1196-去掉空格(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string str, str_dup; while…… 题解列表 2022年02月05日 0 点赞 0 评论 420 浏览 评分:0.0
01背包问题(动态规划 自下而上递推) 摘要:从小问题递推到大问题 递推dp[i][j]——把前i个物品(从第1个到第i个)装入容量为j的背包中获得的最大价值 从dp[0][0]递推到dp[n][m]就是答案 两种情况: (1)第i个物品…… 题解列表 2022年02月04日 0 点赞 0 评论 901 浏览 评分:9.9