| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134308 | 林睿 | 数组转置 | C++ | Accepted | 1 MS | 268 KB | 421 | 2025-10-26 17:08:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[3][3],b[3][3]; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ cin>>a[i][j]; } } for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ b[i][j]=a[j][i]; } } for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ cout<<b[i][j]<<" "; } cout<<" "<<endl; } }