문제풀이/SW Expert Academy
[SWEA][D2] 1288. 새로운 불면증 치료법 (파이썬/Python)
얄루몬
2021. 10. 10. 14:51
t = int(input())
for tc in range(1, t + 1):
n = int(input())
arr = [False]*10
j = 1
cnt = 0
while cnt != 10:
sleep = str(n*j)
for i in sleep:
if arr[int(i)] == False:
arr[int(i)] = True
cnt += 1
j += 1
print(f"#{tc} {n*(j-1)}")