1 solutions
-
0
#include <stdio.h> int main() { int m,n; scanf("%d %d",&n,&m); int a[n][m]; int b[m][n]; for(int i=0;i<n;i++){ for(int t=0;t<m;t++){ scanf("%d ",&a[i][t]); } } for(int i=0;i<n;i++){ for(int t=0;t<m;t++){ b[t][i]=a[i][t]; } } for(int i=0;i<m;i++){ for(int t=0;t<n;t++){ printf("%d ",b[i][t]); } printf("\n"); } return 0; }
- 1
Information
- ID
- 6784
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 6
- Tags
- (None)
- # Submissions
- 91
- Accepted
- 31
- Uploaded By