728x90
https://www.acmicpc.net/problem/1436
n = int(input())
six_number='666'
number = 0
cnt = 0
while True:
number +=1
if six_number in str(number):
cnt += 1
if cnt == n:
break
print(number)
728x90
댓글