結果
問題 | No.312 置換処理 |
ユーザー |
|
提出日時 | 2021-03-18 14:37:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 55 ms / 2,000 ms |
コード長 | 180 bytes |
コンパイル時間 | 262 ms |
コンパイル使用メモリ | 82,296 KB |
実行使用メモリ | 58,896 KB |
最終ジャッジ日時 | 2024-11-15 12:39:05 |
合計ジャッジ時間 | 3,292 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 |
ソースコード
N = int(input())ans = Nfor i in range(3, int(N ** 0.5) + 1):if N % i == 0:ans = ibreakif N % 2 == 0 and N // 2 != 2:ans = min(ans, N // 2)print(ans)