結果

問題 No.442 和と積
ユーザー kaleido0101
提出日時 2020-12-20 15:18:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 152 bytes
コンパイル時間 847 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-21 11:52:02
合計ジャッジ時間 1,913 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a, b = map(int, input().split())


# g = math.gcd(a, b)

# a //= g
# b //= g

# print(g * math.gcd(a + b, g))



print(math.gcd(a+b, a * b))
0