結果

問題 No.3008 某マヨネーズの網目柄
ユーザー yuki2006yuki2006
提出日時 2015-01-31 20:05:18
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 129 bytes
コンパイル時間 1,343 ms
コンパイル使用メモリ 77,176 KB
実行使用メモリ 76,584 KB
最終ジャッジ日時 2023-09-05 08:39:18
合計ジャッジ時間 4,354 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
76,080 KB
testcase_01 AC 70 ms
76,172 KB
testcase_02 AC 71 ms
76,080 KB
testcase_03 AC 69 ms
76,420 KB
testcase_04 AC 70 ms
76,524 KB
testcase_05 AC 69 ms
76,312 KB
testcase_06 AC 73 ms
76,304 KB
testcase_07 AC 73 ms
76,148 KB
testcase_08 AC 72 ms
76,028 KB
testcase_09 AC 71 ms
76,348 KB
testcase_10 AC 72 ms
76,584 KB
testcase_11 AC 73 ms
76,308 KB
testcase_12 AC 72 ms
76,424 KB
testcase_13 AC 72 ms
76,424 KB
testcase_14 AC 70 ms
76,092 KB
testcase_15 AC 72 ms
76,216 KB
testcase_16 AC 73 ms
76,308 KB
testcase_17 AC 73 ms
76,240 KB
testcase_18 AC 71 ms
76,360 KB
testcase_19 AC 72 ms
76,332 KB
testcase_20 AC 72 ms
76,524 KB
testcase_21 AC 71 ms
76,348 KB
testcase_22 AC 74 ms
76,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, raw_input().split())


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


print gcd(N, M)
0