Skip to content

Instantly share code, notes, and snippets.

@veiset
Created December 9, 2014 08:55
Show Gist options
  • Save veiset/5500adfc07528ffeb7ab to your computer and use it in GitHub Desktop.
Save veiset/5500adfc07528ffeb7ab to your computer and use it in GitHub Desktop.
from itertools import combinations
print min([min(a, b) for (a, b) in combinations(xrange(99, 999), 2)
if a+b>999
if len(set("%s%s%s" % (a,b,a+b)))==10])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment