fork(1) download
  1. import math
  2. def square(n):
  3. if n<0:
  4. return 0
  5. else:
  6. tst=int(math.sqrt(n))
  7. if tst*tst==n or (tst+1)*(tst+1)==n or (tst-1)*(tst-1)==n:
  8. return 1
  9.  
  10.  
  11. t=input()
  12. for i in range(t):
  13.  
  14. n=input()
  15. flag=square(n)
  16. if flag==1:
  17. print "Case %l: Yes\n"%i
  18.  
  19. else:
  20. print "Case %l: No\n"%i
  21.  
  22. t=t-1
Compilation error #stdin compilation error #stdout 0.01s 7736KB
stdin
2
4
5
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: expected an indented block (prog.py, line 4)
stdout
Standard output is empty