fork download
  1. def gcd(a, b):
  2. if a == 0:
  3. return b
  4. while b != 0:
  5. if a > b:
  6. a -= b
  7. elif b > a:
  8. b -= a
  9. return a
  10.  
  11. gcd(1989, 867)
Time limit exceeded #stdin #stdout 5s 5908KB
stdin
Standard input is empty
stdout
Standard output is empty