def gcd(a: int, b: int) -> int: """ 두 정수 a와 b의 최대공약수를 반환합니다. 최대공약수는 두 수를 나눌 수 있는 가장 큰 양의…
- User
def gcd(a: int, b: int) -> int: """ 두 정수 a와 b의 최대공약수를 반환합니다. 최대공약수는 두 수를 나눌 수 있는 가장 큰 양의 정수입니다. 예: gcd(12, 18) -> 6 """
Assistant
def gcd(a: int, b: int) -> int: """ 두 정수 a와 b의 최대공약수를 반환합니다. 최대공약수는 두 수를 나눌 수 있는 가장 큰 양의 정수입니다. 예: gcd(12, 18) -> 6 """ while(b): a, b = b, a % b return a
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.