fork download
  1. def divide(n, d):
  2. q = 0
  3. r = n
  4. while r >= d:
  5. q += 1
  6. d = d - r
  7. return q, r
  8.  
Success #stdin #stdout 0.01s 7116KB
stdin
Standard input is empty
stdout
Standard output is empty