結果
問題 | No.136 Yet Another GCD Problem |
ユーザー |
|
提出日時 | 2023-06-22 00:16:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 258 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 59,524 KB |
最終ジャッジ日時 | 2024-06-29 09:04:55 |
合計ジャッジ時間 | 2,765 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 25 |
ソースコード
n, k = map(int, input().split()) if n <= k: print(1) exit() ans = 1 for i in range(1, n // k + 1): q, r = divmod(n, i) if r == 0: ans = max(ans, i) print(ans)