結果
| 問題 |
No.312 置換処理
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-05 03:01:00 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 204 ms / 2,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-15 11:48:15 |
| 合計ジャッジ時間 | 2,694 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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