Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134974 胡海峰老师 数组转置 C++ Accepted 1 MS 272 KB 334 2025-11-01 21:42:58

Tests(1/1):


Code:

#include <iostream> //designed by hu 2025-10 using namespace std; int main(){ int a[4][4] ={0}; for(int i=1;i<=3;i++) { for(int j=1;j<=3;j++) { cin>>a[i][j]; } } for(int i=1;i<=3;i++) { for(int j=1;j<=3;j++) { cout<< a[j][i] <<" "; } cout<<"\n"; } return 0; }