1 solutions
-
0
#include using namespace std;
int n,m;
int a[105][105]; int b[105][105];
int main(){ cin >> n >> m; for (int i=1;i<=n;i++) for (int j=1;j<=m;j++) cin >> a[i][j];
for (int i=1;i<=n;i++) for (int j=1;j<=m;j++) b[j][i] = a[i][j]; for (int i=1;i<=m;i++){ for (int j=1;j<=n;j++) printf("%d ",b[i][j]); printf("\n"); }
}
- 1
Information
- ID
- 6921
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 1
- Tags
- # Submissions
- 63
- Accepted
- 44
- Uploaded By