This commit is contained in:
2025-03-22 21:12:39 +08:00
parent e59ed31afe
commit 504cf57178
5 changed files with 162 additions and 0 deletions

25
ACM/CQUPT-19/C.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t-->0) {
int n,m;
cin>>n>>m;
int arr1[n][m],arr2[m][n];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
cin>>arr1[i][j];
}
}
for(int i = 0; i < m; i++)
{
for(int j = 0; j < n; j++){
printf("%d", arr1[j][i]);
printf(" ");
}
printf("\n");
}
}
}