結果

問題 No.2425 Power Range GCD
ユーザー noriocnorioc
提出日時 2023-08-18 22:40:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 87,164 KB
実行使用メモリ 75,980 KB
最終ジャッジ日時 2023-08-18 22:40:35
合計ジャッジ時間 4,831 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,172 KB
testcase_01 AC 95 ms
75,776 KB
testcase_02 AC 98 ms
75,752 KB
testcase_03 AC 114 ms
75,688 KB
testcase_04 AC 97 ms
75,692 KB
testcase_05 AC 87 ms
75,712 KB
testcase_06 AC 69 ms
71,316 KB
testcase_07 AC 68 ms
71,336 KB
testcase_08 AC 70 ms
71,360 KB
testcase_09 AC 66 ms
71,268 KB
testcase_10 AC 69 ms
71,156 KB
testcase_11 AC 68 ms
71,392 KB
testcase_12 AC 66 ms
71,468 KB
testcase_13 AC 67 ms
71,072 KB
testcase_14 AC 81 ms
71,208 KB
testcase_15 AC 69 ms
71,176 KB
testcase_16 AC 72 ms
71,208 KB
testcase_17 AC 82 ms
71,224 KB
testcase_18 AC 68 ms
71,464 KB
testcase_19 AC 70 ms
71,428 KB
testcase_20 AC 80 ms
71,448 KB
testcase_21 AC 75 ms
71,268 KB
testcase_22 AC 74 ms
71,324 KB
testcase_23 AC 72 ms
71,436 KB
testcase_24 AC 77 ms
75,736 KB
testcase_25 AC 83 ms
75,748 KB
testcase_26 AC 82 ms
71,392 KB
testcase_27 AC 74 ms
75,980 KB
testcase_28 AC 85 ms
75,644 KB
testcase_29 AC 124 ms
75,684 KB
testcase_30 AC 75 ms
75,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd

L, R = map(int, input().split())

g = L
for i in range(L, R+1):
    g = gcd(g, i)

print(g)
0