結果

問題 No.36 素数が嫌い!
ユーザー human_cipherhuman_cipher
提出日時 2021-06-22 01:38:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 302 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 10,748 KB
実行使用メモリ 8,096 KB
最終ジャッジ日時 2023-09-05 02:06:02
合計ジャッジ時間 23,277 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,212 ms
7,932 KB
testcase_01 AC 108 ms
7,904 KB
testcase_02 AC 16 ms
7,928 KB
testcase_03 AC 16 ms
7,932 KB
testcase_04 AC 16 ms
7,976 KB
testcase_05 AC 27 ms
8,044 KB
testcase_06 AC 31 ms
7,980 KB
testcase_07 AC 31 ms
7,940 KB
testcase_08 AC 16 ms
7,932 KB
testcase_09 AC 16 ms
8,044 KB
testcase_10 AC 18 ms
7,976 KB
testcase_11 AC 1,701 ms
8,096 KB
testcase_12 TLE -
testcase_13 TLE -
testcase_14 AC 34 ms
7,984 KB
testcase_15 AC 16 ms
7,928 KB
testcase_16 AC 16 ms
7,992 KB
testcase_17 AC 16 ms
7,988 KB
testcase_18 AC 16 ms
7,984 KB
testcase_19 AC 230 ms
7,940 KB
testcase_20 AC 180 ms
7,984 KB
testcase_21 AC 728 ms
8,088 KB
testcase_22 AC 98 ms
7,940 KB
testcase_23 AC 48 ms
7,908 KB
testcase_24 AC 753 ms
7,940 KB
testcase_25 AC 907 ms
7,932 KB
testcase_26 AC 1,812 ms
7,988 KB
testcase_27 AC 107 ms
7,980 KB
testcase_28 AC 1,810 ms
7,940 KB
testcase_29 AC 54 ms
8,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt

n = int(input())

div = 2
fact = list()
while div < int(sqrt(n))+1 and n > 1:
    if n % div == 0:
        while n % div == 0:
            fact.append(div)
            n //= div
    div += 1
if n > 1:
    fact.append(n)

if len(fact) >= 3:
    print("YES")
else:
    print("NO")
0