結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
eitaho
|
| 提出日時 | 2015-12-05 00:08:49 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-04 12:52:32 |
| 合計ジャッジ時間 | 7,234 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 18 |
ソースコード
import math
N = int(input())
ans = N
root = int(math.sqrt(N))
for i in range(1, root + 1):
if N % i == 0:
b = N // i
if i % 2 == 1 and i >= 3:
ans = min(ans, i)
if b % 2 == 1 and i >= 3:
ans = min(ans, b)
print(ans)
eitaho