https://www.acmicpc.net/problem/10988
import sys
n = input()
flag = 0
for i in range(int(len(n)/2)) :
if n[i]!=n[len(n)-i-1] :
flag +=1
if flag == 0 : print(1)
else : print(0)
'PROGRAMMING CODE > PYTHON' 카테고리의 다른 글
[BAEKJOON] No.9506 Python (0) | 2023.03.22 |
---|---|
[BAEKJOON] No.9610 Python (0) | 2023.03.22 |
[BAEKJOON] No. 2754 Python (0) | 2023.03.21 |
[BAEKJOON] No.3009 Python (0) | 2023.03.21 |
[BAEKJOON] No. 4101 Python (0) | 2023.03.21 |