fork(1) download
  1. def x(n):r=range(-n,n+1);print sum(a*a+b*b==n for a in r for b in r)
  2. x(0)
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
1