2017-08-16 22:54:45 +08:00

16 lines
286 B
Python

def multi_same(num, multi):
s = set(str(num))
for m in range(multi, 1, -1):
if set(str(num * m)) != s:
return False
return True
def search(multi):
num = 124847
while not multi_same(num, multi):
num += 1
return num
print(search(6))