GCD of two numbers
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the GCD (greatest common divisor) of two nonnegative integers.
Input
Two integers and .
Output
Print the GCD of numbers and .
Examples
Input #1
Answer #1
Submissions 18K
Acceptance rate 49%