Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
35723 | chenyanda | 二维数组转一维数组 | C++ | Accepted | 0 MS | 244 KB | 253 | 2024-01-05 17:09:46 |
#include<iostream> using namespace std; int main() { int n; cin>>n; int a[n][n]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin>>a[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cout<<a[i][j]<<" "; } } }