본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 1673번 줄 세우기

by 현장 2022. 5. 27.

-Code

n, l = input().split()
n = int(n)
cnt = n
i = 0
while cnt:
    i += 1
    if l in str(i):
        continue
    cnt -= 1
print(i)