28 lines
524 B
C
28 lines
524 B
C
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
char getColumn(char hats[50][50], int n, int m, int column, char *result) {
|
|
for (int i=0; i<n; i++) {
|
|
result[i] = hats[i][column];
|
|
}
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
int n, m, k;
|
|
scanf("%d %d %d", &n, &m, &k);
|
|
|
|
char hats[50][50];
|
|
|
|
for (int i=0; i<n; i++) {
|
|
for (int j=0; j<m; j++) {
|
|
scanf(" %c", &hats[i][j]);
|
|
}
|
|
}
|
|
for (int i=0; i<n-1; i++) {
|
|
for (int j=0; j<m; j++) {
|
|
printf("%c ", hats[i][j]);
|
|
}
|
|
printf("\n");
|
|
}
|
|
return 0;
|
|
} |