mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
16 lines
221 B
C
16 lines
221 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
char a[1024];
|
||
|
int main()
|
||
|
{
|
||
|
gets(a);
|
||
|
int L=strlen(a);
|
||
|
for(int i=L-1;i>=0;i--)
|
||
|
{
|
||
|
printf("%c",a[i]);
|
||
|
}
|
||
|
printf("\n");
|
||
|
return 0;
|
||
|
}
|