結果

問題 No.36 素数が嫌い!
ユーザー MakorominirisMakorominiris
提出日時 2016-05-30 22:02:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-16 18:58:02
合計ジャッジ時間 10,686 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 563 ms
10,624 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 29 ms
10,624 KB
testcase_04 AC 29 ms
10,752 KB
testcase_05 AC 31 ms
10,624 KB
testcase_06 AC 31 ms
10,624 KB
testcase_07 AC 32 ms
10,624 KB
testcase_08 AC 28 ms
10,752 KB
testcase_09 AC 29 ms
10,624 KB
testcase_10 WA -
testcase_11 AC 294 ms
10,624 KB
testcase_12 AC 818 ms
10,624 KB
testcase_13 AC 828 ms
10,624 KB
testcase_14 AC 423 ms
10,624 KB
testcase_15 WA -
testcase_16 AC 29 ms
10,624 KB
testcase_17 AC 29 ms
10,624 KB
testcase_18 AC 29 ms
10,752 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 379 ms
10,752 KB
testcase_25 WA -
testcase_26 AC 509 ms
10,624 KB
testcase_27 AC 704 ms
10,624 KB
testcase_28 AC 497 ms
10,624 KB
testcase_29 AC 800 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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