백준 10988번 Python 풀이

Myeonggeun Shin·2025년 1월 10일

문제

백준 10988번
제목 : 팰린드롬인지 확인하기


풀이

# Python3
s = input()

if s[::1] == s[::-1]:
    print(1)
else:
    print(0)

0개의 댓글