Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string = ""
- for i in range(0, 99999):
- string = str(i)
- if "0" in string:
- continue
- x = i
- L = 0
- M = 0
- R = 0
- while x > 0:
- R = R * 10 + x % 10
- x = x // 10
- if x <= R:
- M = M + 1
- else:
- L = L + x % 10
- if L == 14 and M == 3:
- print(L, M, i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement