fork download
  1. i=input();d=o=9
  2. while~-d:
  3. n=i;d=o+1;o=i=0
  4. while(n*d+i)**.5%1:i=-~i%d;d+=9*d*0**i
  5. print'%d'%n**.5
Success #stdin #stdout 0.05s 8976KB
stdin
1337
stdout
96