結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-05 03:01:00 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 77,496 KB |
| 最終ジャッジ日時 | 2025-12-03 18:19:10 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 45 |
ソースコード
# -*- coding: utf-8 -*-
N = input()
i = 3
found = False
ans = 1e9
while i * i <= N:
if N % i == 0:
found = True
ans = min(ans, i)
break
i += 1
if found == False and N % 2 == 0 and N != 4:
i = N / 2
found = True
print i if found else N