얼렁뚱땅 백준 문제풀이
[백준 문제풀이] 얼렁뚱땅 5671번 호텔 방 번호 풀이
MOSTAR
2022. 4. 13. 17:37
import sys
while 1:
try:
start, end = map(int, sys.stdin.readline().split())
count = 0
for i in range(start, end+1) :
if len(str(i))==len(list(set(map(int,str(i))))) :
count+=1
print(count)
except:
break