add: swea/1989.py

This commit is contained in:
Gyubin Han
2024-05-01 00:27:13 +09:00
parent b3270ad92e
commit 967f829d48

15
swea/1989.py Normal file
View File

@@ -0,0 +1,15 @@
t=int(input())
for i in range(1,t+1):
s=input()
rFlag=True
for j in range(len(s)//2):
if not s[j]==s[-j-1]:
rFlag=False
break
if rFlag:
print("#"+str(i),1)
else:
print("#"+str(i),0)