Skip to content

Instantly share code, notes, and snippets.

@ftiasch
Created March 1, 2013 11:51
Show Gist options
  • Save ftiasch/5064169 to your computer and use it in GitHub Desktop.
Save ftiasch/5064169 to your computer and use it in GitHub Desktop.
from fractions import gcd
def read():
return map(int, raw_input().split())
if __name__ == "__main__":
while True:
try:
a, b = read()
except EOFError:
break
print a * b / gcd(a, b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment