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 12sample output1
4sample input2
9 15sample output2
3
Comments