| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3629 | 黄祖耀 | 二维数组输出(1) | C++ | Accepted | 100 | 0 MS | 252 KB | 293 | 2019-12-20 21:40:48 |
#include<iostream> using namespace std; int main(){ int a[11][11]={0},n=0,m=1; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ a[i][j]=m; m++; } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }