結果

問題 No.36 素数が嫌い!
ユーザー netyo715netyo715
提出日時 2021-07-15 13:58:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,359 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 7,836 KB
最終ジャッジ日時 2023-09-17 19:55:24
合計ジャッジ時間 17,869 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 630 ms
7,784 KB
testcase_01 AC 887 ms
7,708 KB
testcase_02 AC 16 ms
7,672 KB
testcase_03 AC 15 ms
7,788 KB
testcase_04 AC 15 ms
7,812 KB
testcase_05 AC 19 ms
7,708 KB
testcase_06 AC 20 ms
7,732 KB
testcase_07 AC 19 ms
7,764 KB
testcase_08 AC 17 ms
7,764 KB
testcase_09 AC 18 ms
7,784 KB
testcase_10 AC 19 ms
7,672 KB
testcase_11 AC 455 ms
7,784 KB
testcase_12 AC 1,359 ms
7,784 KB
testcase_13 AC 1,334 ms
7,716 KB
testcase_14 AC 670 ms
7,680 KB
testcase_15 AC 15 ms
7,708 KB
testcase_16 AC 16 ms
7,760 KB
testcase_17 AC 16 ms
7,676 KB
testcase_18 AC 16 ms
7,724 KB
testcase_19 AC 537 ms
7,820 KB
testcase_20 AC 1,193 ms
7,668 KB
testcase_21 AC 1,033 ms
7,724 KB
testcase_22 AC 1,058 ms
7,784 KB
testcase_23 AC 640 ms
7,824 KB
testcase_24 AC 616 ms
7,732 KB
testcase_25 AC 699 ms
7,784 KB
testcase_26 AC 835 ms
7,836 KB
testcase_27 AC 1,153 ms
7,784 KB
testcase_28 AC 810 ms
7,836 KB
testcase_29 AC 1,339 ms
7,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for i in range(2, int(N**0.5)+1):
    while N%i==0:
        N //= i
        ans += 1
if N!=1:
    ans += 1
if ans >= 3:
    print("YES")
else:
    print("NO")
0