結果

問題 No.442 和と積
ユーザー brthyyjp
提出日時 2020-12-15 09:30:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 1,000 ms
コード長 104 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 81,948 KB
実行使用メモリ 52,984 KB
最終ジャッジ日時 2024-09-20 01:28:23
合計ジャッジ時間 1,692 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, input().split())
import math
g = math.gcd(a,b)
ans = math.gcd(a//g+b//g, g)*g
print(ans)
0