結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2016-06-03 13:53:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 142 ms / 2,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-15 12:07:03 |
合計ジャッジ時間 | 3,160 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 |
ソースコード
N = int(input())def factor(x):f=[]while x % 2 == 0:if 2 in f:f.remove(2)f.append(4)else:f.append(2)x = x / 2n=3while x >= n * n:while x % n == 0:f.append(n)x = x / nn = n + 2if x == 1:return ff.append(int(x))return ffor n in sorted(factor(N)):if n != 2:print(n)exit()