結果

問題 No.442 和と積
ユーザー roaris
提出日時 2019-12-19 22:44:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 118 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 82,192 KB
実行使用メモリ 53,956 KB
最終ジャッジ日時 2024-07-07 01:58:56
合計ジャッジ時間 1,745 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

def gcd(a, b):
    while b:
        a, b = b, a%b
    return a

A, B = map(int, input().split())

print(gcd(A+B, A*B))
0