結果

問題 No.136 Yet Another GCD Problem
ユーザー roiti46
提出日時 2015-01-25 23:45:37
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-23 03:00:50
合計ジャッジ時間 1,835 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,raw_input().split())
cnt = 0
ans = 1
while N >= K:
    N -= K
    cnt += 1
    if N%cnt == 0: ans = cnt
print ans
    
0