17 lines
311 B
C
17 lines
311 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main() {
|
|
int N, M;
|
|
scanf("%d %d", &N, &M);
|
|
|
|
char* line = (char*)malloc(sizeof(char)*(M+1));
|
|
while(N--) {
|
|
scanf("%s",line);
|
|
for(int i=M-1; i>=0; i--) printf("%c",line[i]);
|
|
printf("\n");
|
|
}
|
|
|
|
free(line);
|
|
return 0;
|
|
} |