結果

問題 No.442 和と積
ユーザー nebukuro09nebukuro09
提出日時 2016-11-11 22:22:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 25 ms / 1,000 ms
コード長 84 bytes
コンパイル時間 844 ms
コンパイル使用メモリ 6,696 KB
実行使用メモリ 7,856 KB
最終ジャッジ日時 2023-09-18 05:40:46
合計ジャッジ時間 2,793 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
7,680 KB
testcase_01 AC 24 ms
7,832 KB
testcase_02 AC 23 ms
7,816 KB
testcase_03 AC 23 ms
7,824 KB
testcase_04 AC 24 ms
7,608 KB
testcase_05 AC 25 ms
7,652 KB
testcase_06 AC 24 ms
7,612 KB
testcase_07 AC 23 ms
7,776 KB
testcase_08 AC 23 ms
7,820 KB
testcase_09 AC 23 ms
7,824 KB
testcase_10 AC 23 ms
7,776 KB
testcase_11 AC 23 ms
7,716 KB
testcase_12 AC 23 ms
7,808 KB
testcase_13 AC 22 ms
7,772 KB
testcase_14 AC 22 ms
7,780 KB
testcase_15 AC 22 ms
7,828 KB
testcase_16 AC 23 ms
7,616 KB
testcase_17 AC 23 ms
7,812 KB
testcase_18 AC 23 ms
7,856 KB
testcase_19 AC 23 ms
7,644 KB
testcase_20 AC 23 ms
7,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import gcd

a, b = map(int, raw_input().split())
print gcd(a+b, a*b)
0