結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
shimomire
|
| 提出日時 | 2015-12-05 00:09:23 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 360 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-04 12:52:50 |
| 合計ジャッジ時間 | 6,176 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 41 WA * 4 |
ソースコード
def run(N): if N%3 == 0: return 3 if N%4 == 0: return 4 while N%2 == 0: N = N / 2 while N%3 == 0: N = N / 3 p = 5 while p * p <= N: if N%p == 0: return p p = p + 1 return N N = int(input()) print(run(N))
shimomire