結果

問題 No.36 素数が嫌い!
ユーザー Yuta123456Yuta123456
提出日時 2020-05-21 03:24:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 88,108 KB
最終ジャッジ日時 2024-04-09 23:14:10
合計ジャッジ時間 28,674 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,252 ms
45,716 KB
testcase_01 AC 1,381 ms
69,764 KB
testcase_02 AC 26 ms
10,880 KB
testcase_03 AC 24 ms
11,008 KB
testcase_04 AC 25 ms
10,752 KB
testcase_05 AC 32 ms
11,136 KB
testcase_06 AC 34 ms
11,136 KB
testcase_07 AC 36 ms
11,136 KB
testcase_08 AC 27 ms
10,752 KB
testcase_09 AC 29 ms
11,008 KB
testcase_10 WA -
testcase_11 AC 994 ms
35,456 KB
testcase_12 AC 3,022 ms
87,052 KB
testcase_13 AC 2,066 ms
88,108 KB
testcase_14 AC 1,078 ms
57,696 KB
testcase_15 AC 28 ms
10,752 KB
testcase_16 AC 26 ms
10,752 KB
testcase_17 AC 25 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 949 ms
50,588 KB
testcase_25 AC 1,245 ms
49,880 KB
testcase_26 AC 1,577 ms
57,020 KB
testcase_27 AC 1,825 ms
76,052 KB
testcase_28 AC 1,553 ms
56,312 KB
testcase_29 AC 1,993 ms
83,788 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
flag = False
for i in range(int(n**0.5) + 1):
    if factorization[i] >= 2:
        flag = True
if sum(factorization) >= 3 or flag:
    print("YES")
else:
    print("NO")
0