Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def PE32():
- horrorShow = []
- for x in range(1, 10, 1):
- for y in range(1000, 10000, 1):
- if "0" not in set(str(x * y) + str(x) + str(y)):
- if len(set(str(x * y) + str(x) + str(y))) == 9 and len(str(x * y) + str(x) + str(y)) == 9:
- if x * y not in horrorShow:
- horrorShow.append(x * y)
- for x in range(10, 100, 1):
- for y in range(100, 1000, 1):
- if "0" not in set(str(x * y) + str(x) + str(y)):
- if len(set(str(x * y) + str(x) + str(y))) == 9 and len(str(x * y) + str(x) + str(y)) == 9:
- if x * y not in horrorShow:
- horrorShow.append(x * y)
- answer = 0
- for x in horrorShow:
- answer += x
- return answer
- PE32()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement