結果

問題 No.36 素数が嫌い!
ユーザー yuki2006yuki2006
提出日時 2014-10-07 22:02:39
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 6,576 KB
実行使用メモリ 6,024 KB
最終ジャッジ日時 2023-08-28 20:19:40
合計ジャッジ時間 13,571 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 519 ms
5,844 KB
testcase_01 AC 623 ms
5,956 KB
testcase_02 AC 10 ms
6,024 KB
testcase_03 AC 10 ms
5,920 KB
testcase_04 WA -
testcase_05 AC 13 ms
5,856 KB
testcase_06 AC 14 ms
5,916 KB
testcase_07 AC 14 ms
5,928 KB
testcase_08 AC 10 ms
5,884 KB
testcase_09 AC 10 ms
5,956 KB
testcase_10 AC 12 ms
5,840 KB
testcase_11 AC 366 ms
5,880 KB
testcase_12 AC 1,106 ms
5,956 KB
testcase_13 WA -
testcase_14 AC 14 ms
5,856 KB
testcase_15 AC 10 ms
5,960 KB
testcase_16 AC 10 ms
5,916 KB
testcase_17 AC 10 ms
5,848 KB
testcase_18 AC 10 ms
5,928 KB
testcase_19 AC 437 ms
5,964 KB
testcase_20 AC 1,102 ms
5,932 KB
testcase_21 AC 846 ms
5,992 KB
testcase_22 AC 873 ms
5,956 KB
testcase_23 AC 529 ms
5,956 KB
testcase_24 AC 203 ms
5,960 KB
testcase_25 AC 578 ms
5,932 KB
testcase_26 AC 675 ms
5,852 KB
testcase_27 AC 948 ms
5,852 KB
testcase_28 AC 660 ms
5,956 KB
testcase_29 AC 1,067 ms
5,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

_N = int(raw_input())
c = 2
N = _N
count = 0

while N > 1 and c * c <= _N:

    while N % c == 0:
        N /= c
        count += 1
    c += 2 if c > 2 else 1

if count > 1:
    print "YES"
else:
    print "NO"
0