結果

問題 No.136 Yet Another GCD Problem
ユーザー roiti46roiti46
提出日時 2015-01-25 23:47:43
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 214 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 6,708 KB
実行使用メモリ 8,820 KB
最終ジャッジ日時 2023-09-05 06:43:30
合計ジャッジ時間 4,520 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 28 ms
8,820 KB
testcase_02 AC 11 ms
6,132 KB
testcase_03 AC 116 ms
6,720 KB
testcase_04 AC 158 ms
6,436 KB
testcase_05 AC 68 ms
8,420 KB
testcase_06 AC 50 ms
6,440 KB
testcase_07 AC 68 ms
8,560 KB
testcase_08 AC 58 ms
5,860 KB
testcase_09 AC 33 ms
8,044 KB
testcase_10 AC 101 ms
6,708 KB
testcase_11 AC 135 ms
6,416 KB
testcase_12 AC 19 ms
7,052 KB
testcase_13 AC 91 ms
6,804 KB
testcase_14 AC 223 ms
8,736 KB
testcase_15 AC 180 ms
7,260 KB
testcase_16 AC 154 ms
6,712 KB
testcase_17 AC 107 ms
6,124 KB
testcase_18 AC 23 ms
7,772 KB
testcase_19 AC 153 ms
7,252 KB
testcase_20 AC 123 ms
7,248 KB
testcase_21 AC 30 ms
7,392 KB
testcase_22 AC 23 ms
7,856 KB
testcase_23 AC 20 ms
7,408 KB
testcase_24 AC 20 ms
7,392 KB
testcase_25 AC 19 ms
7,256 KB
testcase_26 AC 11 ms
5,864 KB
testcase_27 AC 25 ms
5,996 KB
testcase_28 AC 19 ms
6,080 KB
testcase_29 AC 12 ms
5,880 KB
testcase_30 AC 11 ms
5,880 KB
testcase_31 AC 11 ms
5,868 KB
testcase_32 AC 11 ms
5,936 KB
testcase_33 AC 11 ms
5,988 KB
testcase_34 AC 70 ms
6,716 KB
testcase_35 AC 116 ms
7,628 KB
testcase_36 AC 53 ms
7,680 KB
testcase_37 AC 157 ms
6,544 KB
testcase_38 AC 11 ms
6,132 KB
testcase_39 AC 11 ms
5,864 KB
testcase_40 AC 11 ms
6,128 KB
testcase_41 AC 11 ms
5,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,raw_input().split())
ans = 1
for k in range(2,K+1):
    n = N
    cnt = 0
    if n < k: continue
    while n >= k:
        n -= k
        cnt += 1
    if n%cnt == 0: ans = max(ans, cnt)
print ans
    
0