题解 1231: 杨辉三角

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

筛选

杨辉三角 (C++代码)

摘要:解题思路:水啊(注意换行)参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.ti……

1231基础解法(Python)

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

杨辉三角 (C语言代码)

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

杨辉三角 (Java代码)

摘要:解题思路:    使用二维数组保存数据注意事项:    生成数据可以直接输出,提高效率,不用二次遍历参考代码:import java.util.Scanner; public class Yan……

杨辉三角 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.*; import java.math.*; public class Main{ public static void ma……

动态规划解题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n;    while(scanf("%d",……