Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24345 | 老方 | 二维数组转一维数组 | C++ | Accepted | 0 MS | 248 KB | 269 | 2023-08-10 13:17:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int ns[n][n]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin>>ns[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cout<<ns[i][j]<<' '; } } return 0; }