結果

問題 No.312 置換処理
ユーザー eitaho
提出日時 2015-12-05 00:19:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 202 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-15 11:44:47
合計ジャッジ時間 5,891 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 45
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = int(input())
ans = N
root = int(math.sqrt(N))

for i in range(1, root + 10):
    if N % i == 0:
        b = N // i
        if i >= 3:
            ans = min(ans, i)
        if b >= 3:
            ans = min(ans, b)

print(ans)
0