백준 1681번: 줄 세우기 #Python

ColorlessDia·2024년 3월 28일

algorithm/baekjoon

목록 보기
128/807
N, L = map(int, input().split())

label = 0
count = 0
number = 1

while True:
    if str(L) not in str(number):
        label = number
        count += 1

    if count == N:
        break

    number += 1

print(label)

0개의 댓글