| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3206 | 陶俊宸 | 二维数组输出(1) | C++ | Accepted | 100 | 0 MS | 256 KB | 252 | 2019-12-14 14:56:11 |
#include<iostream> using namespace std; int main(){ short a,c=0,i,j; cin>>a; short b[a][a]; for(i=0;i<a;i++) for(j=0;j<a;j++) b[i][j]=++c; for(i=0;i<a;i++){ for(j=0;j<a;j++){ cout<<b[i][j]<<" "; } cout<<endl; } return 0; }