일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- deep learning
- DFS
- ML
- Linear Regression
- sung kim
- 모두를 위한 딥러닝
- Queue
- Programmers
- 정렬
- BOJ
- softmax
- join
- PIR
- 큐
- 시간초과
- TensorFlow
- deque
- CSAP
- stl
- 알고리즘 고득점 kit
- SQL
- 모두를 위한 머신러닝
- 프로그래머스
- sort
- Machine learning
- 백준
- 한화오션
- mysql
- c++
- Neural Network
Archives
- Today
- Total
hello, world!
[baekJoon1259] 팰린드롬수 본문
https://www.acmicpc.net/problem/1259
1259번: 팰린드롬수
입력은 여러 개의 테스트 케이스로 이루어져 있으며, 각 줄마다 1 이상 99999 이하의 정수가 주어진다. 입력의 마지막 줄에는 0이 주어지며, 이 줄은 문제에 포함되지 않는다.
www.acmicpc.net
import sys
# sys.stdin.readline
while True:
s = sys.stdin.readline()[:-1]
if s == '0':
break
if s == s[::-1]:
print('yes')
else:
print('no')
Comments