fork(1) download
  1. # your code goes here
  2. x=input()
  3. y=input()
  4. m=x
  5. m2=y
  6. def MCM(a,b,c,d):
  7. if a==b:
  8. return a
  9. elif a<b:
  10. return MCM(a+c,b)
  11. else:
  12. return MCM(a,b+d)
  13. mcm=MCM(x,y,m,m2)
  14. print mcm
Runtime error #stdin #stdout #stderr 0s 23352KB
stdin
6
10
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 13, in <module>
  File "prog.py", line 10, in MCM
TypeError: MCM() takes exactly 4 arguments (2 given)