結果

問題 No.36 素数が嫌い!
ユーザー Yuta123456Yuta123456
提出日時 2020-05-21 03:28:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,014 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 87,936 KB
最終ジャッジ日時 2024-04-09 23:14:37
合計ジャッジ時間 25,907 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 942 ms
45,916 KB
testcase_01 AC 1,428 ms
69,872 KB
testcase_02 AC 27 ms
10,752 KB
testcase_03 AC 28 ms
10,752 KB
testcase_04 AC 27 ms
10,880 KB
testcase_05 AC 34 ms
11,136 KB
testcase_06 AC 33 ms
11,136 KB
testcase_07 AC 34 ms
11,264 KB
testcase_08 AC 29 ms
10,752 KB
testcase_09 AC 32 ms
11,008 KB
testcase_10 AC 32 ms
10,880 KB
testcase_11 AC 695 ms
37,156 KB
testcase_12 AC 2,014 ms
86,368 KB
testcase_13 AC 1,995 ms
87,936 KB
testcase_14 AC 1,050 ms
57,660 KB
testcase_15 AC 26 ms
10,880 KB
testcase_16 AC 27 ms
10,880 KB
testcase_17 AC 27 ms
10,880 KB
testcase_18 AC 27 ms
10,752 KB
testcase_19 AC 795 ms
40,900 KB
testcase_20 AC 1,877 ms
86,468 KB
testcase_21 AC 1,568 ms
69,656 KB
testcase_22 AC 1,568 ms
70,224 KB
testcase_23 AC 989 ms
47,360 KB
testcase_24 AC 960 ms
50,604 KB
testcase_25 AC 1,119 ms
50,020 KB
testcase_26 AC 1,269 ms
57,480 KB
testcase_27 AC 1,790 ms
76,200 KB
testcase_28 AC 1,210 ms
55,868 KB
testcase_29 AC 1,940 ms
84,292 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
plus = int(n != 1)
if sum(factorization) + plus >= 3:
    print("YES")
else:
    print("NO")
0