mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
24 lines
384 B
C++
24 lines
384 B
C++
|
#include<stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
int n;
|
||
|
scanf("%d",&n);
|
||
|
getchar();
|
||
|
while(n--)
|
||
|
{
|
||
|
char a[100];
|
||
|
int i=0;
|
||
|
while(1)
|
||
|
{
|
||
|
a[i]=getchar();
|
||
|
if(a[i]=='\n')
|
||
|
break;
|
||
|
i++;
|
||
|
}
|
||
|
i--;
|
||
|
for(;i>=0;i--)
|
||
|
putchar(a[i]);
|
||
|
printf("\n");
|
||
|
}
|
||
|
}
|