Advertisement
danchaofan

Euler #52

Dec 4th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. for a in range(1, 10**10):
  2.     print(a)
  3.     for b in range(10):
  4.         if str(a).count(str(b)) == str(2*a).count(str(b)) == str(3*a).count(str(b)) == str(4*a).count(str(b)) == str(5*a).count(str(b)) == str(6*a).count(str(b)):
  5.             if b == 9:
  6.                 print(a, "ANSWER")
  7.                 quit()
  8.             continue
  9.         else:
  10.             break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement