| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5995 | 季洁 | 打印杨辉三角 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 338 | 2020-08-23 15:54:14 |
#include<bits/stdc++.h> using namespace std; int a[19],b[19]; int main(){ a[10]=1; for(int i=0;i<=9;i++){ for(int j=1;j<=18;j++){ //if(a[j]!=0) cout<<a[j]<<' '; if(a[j]!=0) cout<<a[j]; b[j]=a[j-1]+a[j+1]; } if(i==9) cout<<1; else cout<<endl; for(int j=0;j<=19;j++){ a[j]=b[j]; } } return 0; }