백준 21406번: Строка #Python

ColorlessDia·2026년 1월 26일

algorithm/baekjoon

목록 보기
800/807
N = int(input())

S = ''

for i in range(1, N + 1):
    D = str(i)

    if D not in S:
        S += D

print(S)

0개의 댓글