Find GCD


Submit solution

Points: 20
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type
Allowed languages
Java 19, Java 8

題目說明

輸入兩個正整數,請輸出它們的最大公因數。

輸入

兩個正整數,以空白分隔。

輸出

輸出兩數的最大公因數。

sample input1

8 12

sample output1

4

sample input2

9 15

sample output2

3

Comments

There are no comments at the moment.