結果
| 問題 |
No.136 Yet Another GCD Problem
|
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-23 20:43:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 218 bytes |
| コンパイル時間 | 191 ms |
| コンパイル使用メモリ | 82,580 KB |
| 実行使用メモリ | 53,960 KB |
| 最終ジャッジ日時 | 2024-09-22 15:04:17 |
| 合計ジャッジ時間 | 3,274 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 39 |
ソースコード
n,k=map(int,input().split())
l=[]
for i in range(1,int(n**0.5)+2):
if n%i==0:
l.append(i)
l.append(n//i)
l=list(set(l))
l.sort()
l.reverse()
for i in range(len(l)):
if n//l[i]>=2:
print(l[i])
exit()
あかりき