結果
| 問題 | No.442 和と積 | 
| コンテスト | |
| ユーザー |  gim | 
| 提出日時 | 2017-07-13 17:21:15 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 12 ms / 1,000 ms | 
| コード長 | 250 bytes | 
| コンパイル時間 | 42 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,400 KB | 
| 最終ジャッジ日時 | 2024-07-04 23:07:19 | 
| 合計ジャッジ時間 | 969 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 | 
ソースコード
A,B=map(int, raw_input().split())
s=A+B
p=A*B
def saidaikouyakusuu(a, b):
    if a<b:
        num=a
        a=b
        b=num
    if a%b==0:
        return b
    else:
        return saidaikouyakusuu(b, a%b)
print saidaikouyakusuu(s, p)
        
            
            
            
        