본 내용은 파이썬 알고리즘 문제풀이 (코딩테스트 대비) 강의를 토대로 작성하였습니다.

# 점수계산
# 회문 문자열 검사
import sys
#sys.stdin=open("input.txt", "r")
n = int(input())
for i in range(1, n+1):
t = input()
t = t.upper()
if t == t[::-1]:
print("# %d YES" %i)
else:
print("# %d NO" %i)
'Algorithm > 파이썬 알고리즘 문제풀이' 카테고리의 다른 글
[python/inflearn/section3] 카드 역배치(정올 기출) (0) | 2022.09.22 |
---|---|
[python/inflearn/section3] 숫자만 추출 (0) | 2022.09.22 |
[python/inflearn/section2] 점수계산 (0) | 2022.09.18 |
[python/inflearn/section2] 주사위게임 (0) | 2022.09.18 |
[python/inflearn/section2] 뒤집은 소수 (0) | 2022.09.18 |