count ← 0 // 중복 없는 숫자 개수
FOR num = N 부터 M 까지 반복
s ← num을 문자열로 변환
ok ← True // 중복 없다고 가정
FOR i = 0 부터 s의 길이 - 1
FOR j = i + 1 부터 s의 길이 - 1
IF s[i] == s[j] THEN
ok ← False // 같은 숫자 발견
ENDIF
ENDFOR
ENDFOR
IF ok == True THEN
count ← count + 1
ENDIF
ENDFOR
count 출력
To embed this project on your website, copy the following code and paste it into your website's HTML: