結果

問題 No.442 和と積
ユーザー ​
提出日時 2016-11-11 23:04:36
言語 Python2
(2.7.18)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 102 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 6,664 KB
実行使用メモリ 7,856 KB
最終ジャッジ日時 2023-09-18 06:18:44
合計ジャッジ時間 1,929 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
7,740 KB
testcase_01 AC 23 ms
7,808 KB
testcase_02 AC 23 ms
7,784 KB
testcase_03 AC 23 ms
7,784 KB
testcase_04 AC 23 ms
7,664 KB
testcase_05 AC 23 ms
7,856 KB
testcase_06 AC 23 ms
7,724 KB
testcase_07 AC 23 ms
7,688 KB
testcase_08 AC 23 ms
7,656 KB
testcase_09 AC 24 ms
7,668 KB
testcase_10 AC 24 ms
7,852 KB
testcase_11 AC 23 ms
7,648 KB
testcase_12 AC 23 ms
7,736 KB
testcase_13 AC 23 ms
7,616 KB
testcase_14 AC 23 ms
7,656 KB
testcase_15 AC 23 ms
7,648 KB
testcase_16 AC 23 ms
7,852 KB
testcase_17 AC 23 ms
7,684 KB
testcase_18 AC 23 ms
7,620 KB
testcase_19 AC 24 ms
7,668 KB
testcase_20 AC 23 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import gcd

a, b = map(eval, raw_input().split())
s = a + b
m = a * b

print gcd(s, m)
0