티스토리 뷰
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
t = int(input())
for case in range(t):
string = input()
answer = 1
for i in range(len(string) // 2):
if string[i] != string[len(string) - i - 1]:
answer = 0
break
print("#%d" % (case+1), answer)
'ALGORITHM > SW Expert' 카테고리의 다른 글
[Python]SW Expert - 조교의 성적 매기기(D2) (0) | 2020.03.07 |
---|---|
[Python]SW Expert - 중간 평균값 구하기(D2) (0) | 2020.03.07 |
[Python]SW Expert - 지그재그 숫자(D2) (0) | 2020.03.07 |
[Python]SW Expert - 파스칼의 삼각형(D2) (0) | 2020.03.06 |
[Python]SW Expert - 패턴 마디의 길이(D2) (1) | 2020.03.06 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 코딩테스트
- BOJ
- combination
- 힙
- 우선순위큐
- 2020 KAKAO BLIND RECRUITMENT
- 문자열
- C++
- 구현
- 문자열처리
- 괄호
- dictionary
- SW Expert
- Python
- hash
- 재귀
- programmers
- 프로그래머스
- 완전탐색
- 정렬
- 해시
- left join
- 파이썬
- SWExpert
- 스택
- 2019 Kakao Blind Recruitment
- Permutation
- 백준
- 딕셔너리
- 순열
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함