You are viewing a single comment's thread. Return to all comments →
My Sollution
n,k=map(int,input().split()) l=[] for i in range(1,k+1): l.append(str(i)) for i in range(2,n+1): s="" for j in range(1,k): s+=str(i*j) r=list(s) r=sorted(r) #print(s) if(r==l): print(i) #print(i,r,j) break
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #38: Pandigital multiples
You are viewing a single comment's thread. Return to all comments →
My Sollution