fork download
  1. a1 = input()
  2. s = []
  3. w = ''
  4. for i in a1:
  5. if i == ' ':
  6. s.append(int(w))
  7. w = ' '
  8. w += i
  9. a = s[0]
  10. b = s[1]
  11. while a != b:
  12. if a > b:
  13. a = a - b
  14. else:
  15. b = b - a
  16.  
  17. print(a)
  18.  
Runtime error #stdin #stdout #stderr 0.01s 7188KB
stdin
12 42
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
  File "<string>", line 1
    12 42
        ^
SyntaxError: unexpected EOF while parsing