結果

問題 No.36 素数が嫌い!
ユーザー Yuta123456Yuta123456
提出日時 2020-05-21 03:20:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 86,976 KB
最終ジャッジ日時 2024-04-09 23:13:35
合計ジャッジ時間 25,964 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1,431 ms
70,996 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 AC 27 ms
10,752 KB
testcase_04 AC 26 ms
10,624 KB
testcase_05 AC 33 ms
11,008 KB
testcase_06 AC 33 ms
11,008 KB
testcase_07 AC 33 ms
11,008 KB
testcase_08 AC 28 ms
10,752 KB
testcase_09 AC 32 ms
11,008 KB
testcase_10 WA -
testcase_11 AC 694 ms
35,456 KB
testcase_12 AC 2,014 ms
86,688 KB
testcase_13 AC 2,038 ms
86,976 KB
testcase_14 AC 1,071 ms
57,640 KB
testcase_15 AC 27 ms
10,752 KB
testcase_16 AC 25 ms
10,752 KB
testcase_17 AC 26 ms
10,752 KB
testcase_18 AC 27 ms
10,752 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 948 ms
51,720 KB
testcase_25 WA -
testcase_26 AC 1,269 ms
58,008 KB
testcase_27 AC 1,739 ms
76,468 KB
testcase_28 AC 1,189 ms
55,820 KB
testcase_29 AC 1,941 ms
84,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
factorization = [0 for i in range(int(n**0.5) + 1)]
for div in range(2,int(n**0.5)+1):
    while n % div == 0:
        factorization[div] += 1
        n = n // div
if sum(factorization) >= 3:
    print("YES")
else:
    print("NO")
0