题解 1231: 杨辉三角

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

筛选

1231基础解法(Python)

摘要:解题思路:没啥思路注意事项:注意print()才是空一行,print('\n')是空两行参考代码:lst_rec = list(map(int, input().split()))fo……

编写题解 1231: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() {   int n, i, j;   int a[30][30];   while (scanf("%……

杨辉三角解题

摘要:解题思路:注意事项:参考代码:while True:    try:        def tri(row):            List = [[1 for i in range(j)] for……

1231: 杨辉三角(C语言)

摘要: #include //计算杨辉三角的值 int calculate_value(int row,int col)//行和列 { if(col==1||row==col) ……

C代码记录之杨辉三角

摘要:解题思路:主要用了两个数组,后一行的每一个数都等于前一行的两个数相加(首位除外)后续优化一下,对称输出,而不是居左输出注意事项:参考代码:#include<stdio.h> #include<std……

1231: 杨辉三角

摘要:``` #include using namespace std; const int N=110; int a[N][N]; int main(){ int n; while(ci……

杨辉三角(Java)

摘要:解题思路:注意事项:参考代码:package arrLast; //题目 1231: 杨辉三角 import java.util.Scanner; public class t_1231 { ……

一维数组的解法

摘要:```cpp#includeusing namespace std;int main(){ int a; while(cin >> a) { ……

杨辉三角-题解(C语言代码)

摘要:```c 解题的关键在于行数与列数的关系,比如在i==j||i==0的时候有什么特殊情况。 #include #define N 100 void Print(int a[][N],int n……