fork(4) download
  1. import sys
  2. data=sys.stdin
  3.  
  4. def gcd(a,b):
  5. if b==0:
  6. return a
  7. else:
  8. return gcd(b,a%b)
  9.  
  10.  
  11. t=int(data.readline())
  12. while t:
  13. a,b=map(int,data.readline().split(''))
  14. t-=1
  15. print gcd(a,b)
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
2 6
10 11
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 6)
stdout
Standard output is empty