結果
| 問題 |
No.136 Yet Another GCD Problem
|
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2021-04-29 11:48:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-08 10:42:46 |
| 合計ジャッジ時間 | 2,348 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 25 |
ソースコード
N, K = map(int, input().split())
div = set()
for i in range(2, int(N**0.5)+1):
if N % i == 0:
div.add(i)
div.add(N//i)
div = sorted(div)
ans = 1
for ball in div:
box = N//ball
if box >= K:
ans = ball
print(ans)
tktk_snsn