본문 바로가기
Python/코테 연습

10988

by soojitasan 2024. 7. 4. 22:30
## 10988 팰린드롬
word = input()
stndrd = len(word)//2

if word[0:stndrd] == word[len(word):-stndrd-1:-1]:
  print(1)
else:
  print(0)