얼렁뚱땅 백준 문제풀이

[백준 문제풀이] 얼렁뚱땅 16171번 나는 친구가 적다(small) 풀이

MOSTAR 2022. 4. 19. 13:27

이름이 왜이랭

 

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

 

import sys

str_ = str(sys.stdin.readline().strip())
answer = str(sys.stdin.readline().strip())
new_str = ''
for i in range(len(str_)) :
	if str_[i].isdigit() == False :
		new_str += str_[i]

if answer in new_str :
	print(1)
else :
	print(0)