結果

問題 No.442 和と積
ユーザー roarisroaris
提出日時 2019-12-19 22:44:31
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 118 bytes
コンパイル時間 603 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 71,500 KB
最終ジャッジ日時 2023-09-21 07:35:12
合計ジャッジ時間 4,163 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,500 KB
testcase_01 AC 72 ms
71,376 KB
testcase_02 AC 73 ms
71,496 KB
testcase_03 AC 74 ms
71,260 KB
testcase_04 AC 74 ms
71,400 KB
testcase_05 AC 73 ms
71,324 KB
testcase_06 AC 72 ms
71,336 KB
testcase_07 AC 72 ms
71,324 KB
testcase_08 AC 72 ms
71,472 KB
testcase_09 AC 73 ms
71,316 KB
testcase_10 AC 74 ms
71,128 KB
testcase_11 AC 73 ms
71,232 KB
testcase_12 AC 73 ms
71,388 KB
testcase_13 AC 73 ms
71,408 KB
testcase_14 AC 73 ms
71,256 KB
testcase_15 AC 74 ms
71,288 KB
testcase_16 AC 73 ms
71,396 KB
testcase_17 AC 71 ms
71,460 KB
testcase_18 AC 73 ms
71,236 KB
testcase_19 AC 72 ms
71,436 KB
testcase_20 AC 73 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

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