結果

問題 No.442 和と積
ユーザー 👑 Kazun
提出日時 2020-06-12 14:46:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 101 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 53,848 KB
最終ジャッジ日時 2024-06-24 03:55:20
合計ジャッジ時間 1,790 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
A,B=map(int,input().split())
G=math.gcd(A,B)

p=A//G
q=B//G
print(G*math.gcd(p+q,G*p*q))
0