mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
18 lines
289 B
C++
18 lines
289 B
C++
#include <stdio.h>
|
|
#include <string.h>
|
|
int main(void)
|
|
{
|
|
int n;
|
|
char s[1024];
|
|
char t[1024];
|
|
scanf("%d%*c", &n);
|
|
while (n--)
|
|
{
|
|
gets(s);
|
|
strcpy(t, s);
|
|
strrev(s);
|
|
puts(strcmp(t, s) ? "no" : "yes");
|
|
}
|
|
return 0;
|
|
}
|