| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164958 | 王垚植 | 二维数组输出(2) | C++ | Accepted | 1 MS | 264 KB | 269 | 2026-11-08 13:55:03 |
#include <bits/stdc++.h> using namespace std; int a[10][10]; int main(){ int i,j,n,z=1; cin>>n; for(i=0;i<n;i++){ for(j=0;j<n;j++){ a[j][i]=z; z++; } } for(i=0;i<n;i++){ for(j=0;j<n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } }