import mathdef square(n): if n<0: return 0 else: tst=int(math.sqrt(n)) if tst*tst==n or (tst+1)*(tst+1)==n or (tst-1)*(tst-1)==n: return 1 t=input()for i in range(t): n=input() flag=square(n) if flag==1: print "Case %l: Yes\n"%i else: print "Case %l: No\n"%i t=t-1
2 4 5
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)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!