import java.util.Scanner;
public class a015 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int row = sc.nextInt();
int count = sc.nextInt();
int [][]array = new int [count][row] ;
for (int i = 0 ; i < row ; i++) {
for ( int j = 0 ; j < count ; j++ ) {
array[j][i] = sc.nextInt();
}
}
for(int [] i : array) {
for(int j : i ) {
System.out.print(j+" ");
}
System.out.println();
}}}
import java.util.Scanner;
public class a015 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int row = sc.nextInt();
int count = sc.nextInt();
int [][]array = new int [count][row] ;
for (int i = 0 ; i < row ; i++) {
for ( int j = 0 ; j < count ; j++ ) {
array[j][i] = sc.nextInt();
}
}
for(int [] i : array) {
for(int j : i ) {
System.out.print(j+" ");
}
System.out.println();
}}}
已解決