結果
| 問題 |
No.312 置換処理
|
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2015-12-12 14:12:26 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 266 ms / 2,000 ms |
| コード長 | 216 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 38,208 KB |
| 最終ジャッジ日時 | 2024-11-15 11:58:54 |
| 合計ジャッジ時間 | 3,310 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 45 |
ソースコード
import math N = long(raw_input()) flag = False for i in range(3,int(math.sqrt(N)) + 1): if N % i == 0: flag = True print i break if not flag and N % 2 == 0 and N / 2 != 2: print N / 2 elif not flag: print N
tookunn_1213