結果

問題 No.442 和と積
コンテスト
ユーザー cologne
提出日時 2025-11-18 14:41:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 1,000 ms
コード長 201 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 82,736 KB
実行使用メモリ 54,032 KB
最終ジャッジ日時 2025-11-18 14:41:53
合計ジャッジ時間 2,323 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import sys


def input(): return sys.stdin.readline().rstrip('\n')


def main():
    a, b = map(int, input().split())
    print(math.gcd(a+b, a*b))


if __name__ == '__main__':
    main()
0