fork download
  1. f=lambda n,m=1:m<=n and f(n,m*10)or-~m*n*n
  2. print(f(12))
  3. print(f(1))
  4. print(f(2))
  5. print(f(3))
  6. print(f(10))
  7. print(f(174))
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
14544
11
44
99
10100
30306276