杨辉三角(相当于一个矩阵的下三角,利用矩阵的知识就可以了) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int num[30][30] = { 1 }; int main(){ int n;…… 题解列表 2022年02月05日 0 点赞 0 评论 196 浏览 评分:0.0
Hifipsysta-1180-不容易系列(C++代码)递归法 摘要:```cpp #include using namespace std; int a_(int n){ if(n==0){ return 3; } …… 题解列表 2022年02月05日 0 点赞 0 评论 305 浏览 评分:0.0
Hifipsysta-1159-偶数求和(C++代码)最后不足m的要查漏补缺 摘要: ```cpp #include #include #include using namespace std; const int max_len=100; float arr[ma…… 题解列表 2022年02月05日 0 点赞 0 评论 199 浏览 评分:0.0
Hifipsysta-1173-计算球体积(C++代码) 摘要:```cpp #include #include using namespace std; float compute_volume(float r){ return (4.0/…… 题解列表 2022年02月05日 0 点赞 0 评论 253 浏览 评分: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 评论 250 浏览 评分: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 评论 175 浏览 评分: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 评论 149 浏览 评分: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 评论 355 浏览 评分:0.0
优质题解 Hifipsysta-1239-班级人数(C++代码)建立三个不等式,搜索符合条件的答案 摘要:##### 解题思路: 本题的思路是要找到一个最小的班级人数$$N$$,这个$$N$$满足如下条件: ① 给定一个比例的范围,存在某个整数$$n$$,使得$$n$$个人及格的及格率$$\frac{…… 题解列表 2022年02月05日 1 点赞 0 评论 439 浏览 评分: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 评论 372 浏览 评分:9.9