greatest common divisor


Submit solution

Points: 20 (partial)
Time limit: 5.0s
Memory limit: 256M

Authors:
Problem types

題目說明

請先輸入兩正整數,後輸出兩數的最大公因數

若小於0則輸出wrong!並結束程式

輸入限制: 數字

輸入

兩正整數

輸出

最大公因數

sample input1

30 10

sample output1

10

sample input2

-1 30

sample output2

wrong!

Comments

There are no comments at the moment.