
Untitled
By: a guest on
Oct 30th, 2012 | syntax:
Python | size: 0.27 KB | hits: 52 | expires: Never
for i in range(1000000):
a, b = divmod(i, 1000)
sa = str(a)
sb = str(b)
if a <= b and a >= 100 and b >= 100 and len(set(sa + sb)) == 6:
x = a + b
sx = str(x)
if x >= 1000 and len(set(sa + sb + sx)) == 10:
print a, b, x