杨辉三角(相当于一个矩阵的下三角,利用矩阵的知识就可以了) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int num[30][30] = { 1 }; int main(){ int n;…… 题解列表 2022年02月05日 0 点赞 0 评论 131 浏览 评分:0.0
动态规划解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; while(scanf("%d",…… 题解列表 2022年04月07日 0 点赞 0 评论 189 浏览 评分:0.0
1231: 杨辉三角 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[35][35],n;int main(){ a[1][1]=…… 题解列表 2022年05月22日 0 点赞 0 评论 204 浏览 评分:0.0
111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,a[100][100]; while(scanf("%d",&n)==1) …… 题解列表 2022年08月06日 0 点赞 0 评论 405 浏览 评分:0.0
1231-杨辉三角(代码简洁,思路清晰) 摘要:```cpp #include using namespace std; int a[30][30]; //1>n) //输入多组数据,按ctrl+z键退出循环 { for(in…… 题解列表 2022年10月13日 0 点赞 0 评论 128 浏览 评分:0.0
1231基础解法(Python) 摘要:解题思路:没啥思路注意事项:注意print()才是空一行,print('\n')是空两行参考代码:lst_rec = list(map(int, input().split()))fo…… 题解列表 2022年12月26日 0 点赞 0 评论 150 浏览 评分:0.0
编写题解 1231: 杨辉三角 摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() { int n, i, j; int a[30][30]; while (scanf("%…… 题解列表 2023年01月23日 0 点赞 0 评论 91 浏览 评分:0.0
杨辉三角解题 摘要:解题思路:注意事项:参考代码:while True: try: def tri(row): List = [[1 for i in range(j)] for…… 题解列表 2023年02月13日 0 点赞 0 评论 153 浏览 评分:0.0
1231: 杨辉三角(C语言) 摘要: #include //计算杨辉三角的值 int calculate_value(int row,int col)//行和列 { if(col==1||row==col) …… 题解列表 2023年07月25日 0 点赞 0 评论 172 浏览 评分:0.0
杨辉三角 (C++代码) 摘要:解题思路:水啊(注意换行)参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.ti…… 题解列表 2019年03月17日 0 点赞 0 评论 966 浏览 评分:0.0