Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = 0
- for n in range(1001, 10000, 2):
- s = str(n)
- s_1 = int(s[0]) + int(s[1])
- s_2 = int(s[2]) + int(s[3])
- s_new1 = str(min(s_1, s_2))
- s_new2 = str(max(s_1, s_2))
- s_new = s_new1 + s_new2
- if s_new == "616":
- c = c + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement