結果

問題 No.36 素数が嫌い!
ユーザー Yuta123456Yuta123456
提出日時 2020-05-21 03:19:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 87,572 KB
最終ジャッジ日時 2024-04-09 23:13:08
合計ジャッジ時間 27,361 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,078 ms
45,920 KB
testcase_01 AC 1,540 ms
70,620 KB
testcase_02 AC 29 ms
10,752 KB
testcase_03 AC 29 ms
10,752 KB
testcase_04 WA -
testcase_05 AC 35 ms
11,008 KB
testcase_06 AC 35 ms
11,008 KB
testcase_07 AC 36 ms
11,008 KB
testcase_08 AC 31 ms
10,752 KB
testcase_09 AC 33 ms
10,880 KB
testcase_10 AC 34 ms
10,880 KB
testcase_11 AC 734 ms
35,328 KB
testcase_12 AC 2,166 ms
87,572 KB
testcase_13 WA -
testcase_14 AC 1,120 ms
58,204 KB
testcase_15 AC 29 ms
10,624 KB
testcase_16 AC 30 ms
10,752 KB
testcase_17 AC 29 ms
10,624 KB
testcase_18 AC 30 ms
10,880 KB
testcase_19 AC 863 ms
40,240 KB
testcase_20 AC 1,988 ms
86,984 KB
testcase_21 AC 1,668 ms
70,244 KB
testcase_22 AC 1,709 ms
70,156 KB
testcase_23 AC 1,040 ms
46,568 KB
testcase_24 AC 1,008 ms
52,020 KB
testcase_25 AC 1,138 ms
49,792 KB
testcase_26 AC 1,317 ms
57,164 KB
testcase_27 AC 1,879 ms
76,708 KB
testcase_28 AC 1,300 ms
55,928 KB
testcase_29 AC 2,071 ms
85,364 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) >= 2:
    print("YES")
else:
    print("NO")
0