Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- min_d = n % 10
- cnt = 1
- while n > 0:
- digit = n % 10
- if digit < min_d:
- min_d = digit
- cnt = 1
- elif digit == min_d:
- cnt += 1
- n //= 10
- print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement