結果

問題 No.442 和と積
ユーザー ytft
提出日時 2021-03-26 19:26:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 111 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 53,312 KB
最終ジャッジ日時 2024-11-28 16:23:21
合計ジャッジ時間 1,521 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())
M=max(A*B,A+B)
m=min(A*B,A+B)
while(m>0):
    temp=m
    m=M%m
    M=temp
print(M)
0