전체 글439 백준 1850번 파이썬 from fractions import gcda,b = map(int, input().split())for i in range(int(gcd(a,b))): print(1, end="") 2018. 10. 3. 백준 2609번 파이썬 from fractions import gcddef gcdlcm(a, b): return a*b/gcd(a,b)a,b = map(int, input().split())print(int(gcd(a,b)))print(int(gcdlcm(a,b))) 2018. 10. 3. 백준 13241번 파이썬 from fractions import gcddef gcdlcm(a, b): return a*b/gcd(a,b)a,b = map(int, input().split())print(int(gcdlcm(a,b))) 2018. 10. 3. 백준 1934번 파이썬 from fractions import gcddef gcdlcm(a, b): return a*b/gcd(a,b)for i in range(int(input())): a,b = map(int, input().split()) print(int(gcdlcm(a,b))) 2018. 10. 3. 이전 1 ··· 93 94 95 96 97 98 99 ··· 110 다음