1231: 杨辉三角 摘要:```cpp #include using namespace std; int a[1000][1000]; int main() { int n; while(cin>>n) {…… 题解列表 2024年06月27日 1 点赞 0 评论 477 浏览 评分:9.9
杨辉三角 (C++代码) 摘要:解题思路: 之前我写了一个用找到的规律来写的杨辉三角形的代码,想了一下又想到当初学排列组合数时说杨辉三角形中的数字就是排列组合数,所以用组合数又写了一次。 …… 题解列表 2019年04月11日 1 点赞 1 评论 1373 浏览 评分:9.9
杨辉三角16行代码 简单易懂 摘要:解题思路:注意事项:参考代码:m = input().split() def YH(n): a = [[0]*(1+i) for i in range(n)] for i in …… 题解列表 2021年04月16日 0 点赞 0 评论 1016 浏览 评分:9.9
杨辉三角(c++)(新手) 摘要:解题思路:首先获取 1-30 的所有的数据在输出.注意事项:参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespac…… 题解列表 2021年05月15日 0 点赞 0 评论 633 浏览 评分:9.9
杨辉三角(暴力) 摘要:解题思路:双重循环直接写就行注意事项:参考代码:#include<iostream> using namespace std; const int N=100; int n,a[N][N]; …… 题解列表 2023年08月03日 1 点赞 0 评论 454 浏览 评分:9.9
杨辉三角 (Java代码) 摘要:解题思路: import java.util.Scanner; public class C1231 { public static void main(String[] args) {…… 题解列表 2018年03月19日 3 点赞 0 评论 1423 浏览 评分:9.9
题解 1231: 杨辉三角 摘要:```cpp #include #include using namespace std; void generate(int numRows); int main() { int…… 题解列表 2021年07月28日 0 点赞 0 评论 703 浏览 评分:9.9
c语言 二维数组ddd 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int n; while (scanf("%d", &n) != EOF) { int k = 1; i…… 题解列表 2021年11月23日 0 点赞 0 评论 800 浏览 评分:9.9
杨辉三角 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,a[100][100]; while(scanf("%d",&n)==1) …… 题解列表 2019年02月07日 0 点赞 2 评论 2140 浏览 评分:9.9
杨辉三角, 三种方法: 组合数 || 递归 || 迭代,都很简单 摘要: #include long long Fun(int n, int m)// 组合数,注意大组合数 { if (n …… 题解列表 2022年11月14日 0 点赞 0 评论 916 浏览 评分:9.9