fork download
  1. for i in range(729):
  2. a,b,c = 1+i%9,1+i//9%9,1+i//81
  3. if 9*a*c+b*c-10*a*b == 0:
  4. print(a,b,c)
Success #stdin #stdout 0.02s 9132KB
stdin
Standard input is empty
stdout
1 1 1
2 2 2
3 3 3
4 4 4
1 6 4
5 5 5
2 6 5
1 9 5
6 6 6
7 7 7
8 8 8
4 9 8
9 9 9