結果

問題 No.312 置換処理
ユーザー gorugo30
提出日時 2021-03-18 14:37:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 164 bytes
コンパイル時間 551 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 57,600 KB
最終ジャッジ日時 2024-11-16 15:15:18
合計ジャッジ時間 3,787 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = N
for i in range(3, int(N ** 0.5) + 1):
    if N % i == 0:
        ans = i
        break
if N % 2 == 0:
    ans = min(ans, N // 2)
print(ans)
0