题解 2042: 杨辉三角

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

优质题解

杨辉三角(c++代码)

摘要:杨辉三角(在这里储存为直角正三角形) > 1 > 1 1 > 1 **2 1** > 1 3 **3** 1 > …… 看到这张图应该先想一下打印直角正三角形的代码 ```cpp ……

杨辉三角解法

摘要:解题思路:注意事项:数组只能用longlong型,否则出不来。参考代码:#include<stdio.h>int main(){ long long a[1000][1000]; int i, j, ……

鸡你太美:坤坤三角

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){    in……

2042: 杨辉三角(C语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef long long LL; int main() {    ……

2042: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){    in……

题解 2042: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N =1e3;ll a……

杨辉三角——python

摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())L = [[1],[1,1]]for i in range(1,n):    a = L[i]    b = ……