倒杨辉三角形(递推) 摘要:解题思路:递推注意事项:参考代码:#include<iostream>#include<iomanip>usingnamespacestd;…… 题解列表 2025年01月29日 0 点赞 0 评论 92 浏览 评分:0.0
相对简单一点 摘要:```cpp #include using namespace std; int a[10][10]; int main() { int n; while (cin >> n){ …… 题解列表 2023年10月27日 0 点赞 1 评论 156 浏览 评分:9.9
1186: 倒杨辉三角形 摘要:```cpp #include #include using namespace std; int dp[11][100]; int main() { int index; …… 题解列表 2022年11月30日 0 点赞 0 评论 237 浏览 评分:9.9
格式错误的来 摘要:```cpp 三个步骤 1、将俩个斜边的值全部初始化为1 方便后面计算 2、找规律 每一行除了第一个和最后一个 其他的值都是上一行此列跟前一列数字的和 3、保存数组 反向输出 注意格式 4、…… 题解列表 2021年05月27日 0 点赞 0 评论 385 浏览 评分:9.9
倒杨辉三角形-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int n; while(cin>>n){ …… 题解列表 2020年03月20日 0 点赞 0 评论 672 浏览 评分:8.0
倒杨辉三角形-题解(C++代码) 易理解 摘要:#### 1.先构建好杨辉三角 #### 2.从第n行输出到第一行 > 本题主要考查输出格式,需格外小心,具体的注释写在了代码中: ```cpp #include #include u…… 题解列表 2019年12月30日 0 点赞 1 评论 866 浏览 评分:6.4
倒杨辉三角形 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; int a[10][10]; int main…… 题解列表 2018年05月13日 0 点赞 0 评论 885 浏览 评分:9.6