fork download
  1. for n in range (100000,999999):
  2. for i in range (1,9):
  3. if n%10==i:
  4. j=n*i
  5. if j%100000==j/10 and j%10000==j/100 and j%1000==j/1000:
  6. if n/100000 !=n%100000/10000 !=n%10000/1000!=n%1000/100!=n%100/10!=i:
  7.  
  8. print n,i,j
  9.  
  10.  
  11.  
Success #stdin #stdout 2.68s 8760KB
stdin
Standard input is empty
stdout
Standard output is empty