結果

問題 No.442 和と積
ユーザー Konton7Konton7
提出日時 2019-05-15 12:32:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 164 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-10-11 21:10:06
合計ジャッジ時間 1,696 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,852 KB
testcase_02 AC 17 ms
7,892 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 WA -
testcase_05 AC 16 ms
7,816 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 15 ms
7,812 KB
testcase_10 WA -
testcase_11 AC 15 ms
7,860 KB
testcase_12 AC 16 ms
7,828 KB
testcase_13 AC 16 ms
7,992 KB
testcase_14 AC 15 ms
7,876 KB
testcase_15 AC 16 ms
7,828 KB
testcase_16 AC 16 ms
7,820 KB
testcase_17 AC 16 ms
7,816 KB
testcase_18 WA -
testcase_19 AC 15 ms
7,816 KB
testcase_20 AC 15 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y = [ int(v) for v in input().split() ]

def gcd(a,b):
    if a < b:
        a, b = b, a
    while b >= 1:
        a, b = b, a % b
    return a

print(gcd(x, y))
0