271일차 - BOJ no.16171

https://www.acmicpc.net/problem/16171

My Solution

import sys

S = sys.stdin.readline().rstrip()
K = sys.stdin.readline().rstrip()

newS = ''
for i in S:
    if i.isalpha():
        newS += i
if K in newS:
    print(1)
else:
    print(0)

좋은 웹페이지 즐겨찾기