結果
| 問題 |
No.136 Yet Another GCD Problem
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-04-30 15:10:36 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 124 bytes |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 9,344 KB |
| 最終ジャッジ日時 | 2024-07-05 17:09:59 |
| 合計ジャッジ時間 | 1,868 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 25 |
ソースコード
N,K=map(int,raw_input().split())
ans=1
for i in range(2,N):
if N%i==0 and N/i>=K:
ans=max(ans,i)
print ans
yaoshimax