fork download
  1. for i in range(100):
  2. a = list(str(i))
  3. k = 0
  4. for j in a:
  5. k = k + int(j)
  6. if k ** 2 == i:
  7. print(i)
Success #stdin #stdout 0.07s 14188KB
stdin
Standard input is empty
stdout
0
1
81