結果

問題 No.36 素数が嫌い!
ユーザー vwxyzvwxyz
提出日時 2022-02-17 02:26:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 213 ms / 5,000 ms
コード長 262 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2023-09-11 17:23:28
合計ジャッジ時間 4,695 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
75,680 KB
testcase_01 AC 81 ms
75,812 KB
testcase_02 AC 74 ms
71,304 KB
testcase_03 AC 74 ms
71,296 KB
testcase_04 AC 75 ms
71,108 KB
testcase_05 AC 78 ms
75,668 KB
testcase_06 AC 75 ms
75,900 KB
testcase_07 AC 76 ms
75,880 KB
testcase_08 AC 74 ms
71,372 KB
testcase_09 AC 75 ms
71,412 KB
testcase_10 AC 78 ms
75,748 KB
testcase_11 AC 119 ms
75,736 KB
testcase_12 AC 213 ms
75,804 KB
testcase_13 AC 209 ms
75,812 KB
testcase_14 AC 76 ms
75,880 KB
testcase_15 AC 80 ms
71,264 KB
testcase_16 AC 74 ms
70,984 KB
testcase_17 AC 77 ms
71,152 KB
testcase_18 AC 77 ms
71,328 KB
testcase_19 AC 88 ms
75,896 KB
testcase_20 AC 88 ms
75,772 KB
testcase_21 AC 102 ms
75,856 KB
testcase_22 AC 87 ms
75,812 KB
testcase_23 AC 84 ms
75,892 KB
testcase_24 AC 102 ms
75,596 KB
testcase_25 AC 111 ms
75,812 KB
testcase_26 AC 142 ms
75,904 KB
testcase_27 AC 82 ms
75,700 KB
testcase_28 AC 141 ms
75,732 KB
testcase_29 AC 82 ms
75,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline

N=int(readline())
cnt=0
for p in range(2,N):
    while N%p==0:
        N//=p
        cnt+=1
    if N==1:
        break
    if p**2>N:
        break
if N!=1:
    cnt+=1
if cnt>=3:
    ans='YES'
else:
    ans='NO'
print(ans)
0