pand = {'1', '2', '3', '4', '5', '6', '7', '8', '9'}
largest = 0
for i in range(1, 10000):
    j = 1
    num = []
    while sum(len(s) for s in num) < 9:
        num.append(str(i * j))
        j += 1
    if sum(len(s) for s in num) == 9 and set(sum(([list(s) for s in num]), [])) == pand and int(''.join(num)) > largest:
        largest = int(''.join(num))

print(largest)

d29f5f1b5947383ae49b0eb65def2bb08d663697
<mask token>

<mask token>
for i in range(1, 10000):
    j = 1
    num = []
    while sum(len(s) for s in num) < 9:
        num.append(str(i * j))
        j += 1
    if sum(len(s) for s in num) == 9 and set(sum([list(s) for s in num], [])
        ) == pand and int(''.join(num)) > largest:
        largest = int(''.join(num))
print(largest)

pand = {'1', '2', '3', '4', '5', '6', '7', '8', '9'}
largest = 0
for i in range(1, 10000):
    j = 1
    num = []
    while sum(len(s) for s in num) < 9:
        num.append(str(i * j))
        j += 1
    if sum(len(s) for s in num) == 9 and set(sum([list(s) for s in num], [])
        ) == pand and int(''.join(num)) > largest:
        largest = int(''.join(num))
print(largest)

pand = {'1', '2', '3', '4', '5', '6', '7', '8', '9'}
largest = 0
for i in range(1, 10000):
    j = 1
    num = []
    while sum(len(s) for s in num) < 9:
        num.append(str(i * j))
        j += 1
    if sum(len(s) for s in num) == 9 and set(sum(([list(s) for s in num]), [])) == pand and int(''.join(num)) > largest:
        largest = int(''.join(num))

print(largest)
