結果
問題 | No.136 Yet Another GCD Problem |
ユーザー |
|
提出日時 | 2015-01-25 23:47:02 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 48 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 9,472 KB |
最終ジャッジ日時 | 2024-06-23 03:00:56 |
合計ジャッジ時間 | 3,288 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 RE * 1 |
other | AC * 26 RE * 13 |
ソースコード
N,K = map(int,raw_input().split()) ans = 1 for k in range(2,K+1): n = N cnt = 0 while n >= k: n -= k cnt += 1 if n%cnt == 0: ans = max(ans, cnt) print ans