結果

問題 No.442 和と積
ユーザー leaf_tadpole
提出日時 2017-02-05 17:20:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 218 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,248 KB
最終ジャッジ日時 2024-12-24 06:37:21
合計ジャッジ時間 33,439 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 TLE * 1
other AC * 2 WA * 2 TLE * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

reader = (list(map(int, input().split(' '))))
wa = reader[0] + reader[1]
seki = reader[0] * reader[1]

result = 0
for i in range(1, seki):
    if wa % i == 0 and seki % i == 0:
        result = i
        
print(result)
0