fork download
  1. def myCOUNT(l):
  2. newlist=[[x,y,z] for x in l for y in l for z in l if (z%y==0 and y%x==0 and l.index(x)<l.index(y) and l.index(y)<l.index(z))]
  3. return len(newlist)
  4.  
  5. print(myCOUNT([1, 1, 1]))
Success #stdin #stdout 0.04s 9324KB
stdin
Standard input is empty
stdout
0