| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3870 | 张曦元 | 二维数组输出(2) | C++ | Accepted | 100 | 0 MS | 252 KB | 279 | 2019-12-25 14:47:09 |
#include<iostream> using namespace std; int main(){ int a[101][101],n,k=1; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ a[j][i]=k++; } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }