You are viewing a single comment's thread. Return to all comments →
Passed All Test Cases. I don't how, just i tried range loops.
N = int(input()) org = [i for i in range(1, N+1)] first = 0 second = 0 last = 0 ans = set() for i in range(1, 10**2): for j in range(i, 10**4): if i == j: continue prd = i * j st = str(i) + str(j) + str(prd) st = list(map(int, st)) st = sorted(st) if st == org: ans.add(prd) #print(prd) print(sum(ans))
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #32: Pandigital products
You are viewing a single comment's thread. Return to all comments →
Passed All Test Cases. I don't how, just i tried range loops.