add: swea/1989.py
This commit is contained in:
15
swea/1989.py
Normal file
15
swea/1989.py
Normal 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)
|
||||||
Reference in New Issue
Block a user