結果

問題 No.36 素数が嫌い!
ユーザー しらっ亭しらっ亭
提出日時 2015-07-29 03:29:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 382 ms / 5,000 ms
コード長 294 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 75,496 KB
最終ジャッジ日時 2023-09-09 07:13:56
合計ジャッジ時間 5,647 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 279 ms
75,392 KB
testcase_01 AC 94 ms
75,492 KB
testcase_02 AC 71 ms
71,212 KB
testcase_03 AC 72 ms
70,976 KB
testcase_04 AC 70 ms
71,088 KB
testcase_05 AC 77 ms
75,496 KB
testcase_06 AC 77 ms
75,116 KB
testcase_07 AC 74 ms
75,060 KB
testcase_08 AC 73 ms
71,072 KB
testcase_09 AC 73 ms
70,932 KB
testcase_10 AC 77 ms
75,436 KB
testcase_11 AC 121 ms
75,076 KB
testcase_12 AC 215 ms
75,308 KB
testcase_13 AC 210 ms
75,116 KB
testcase_14 AC 74 ms
75,124 KB
testcase_15 AC 73 ms
71,152 KB
testcase_16 AC 72 ms
70,976 KB
testcase_17 AC 70 ms
70,820 KB
testcase_18 AC 71 ms
70,968 KB
testcase_19 AC 109 ms
75,368 KB
testcase_20 AC 112 ms
75,248 KB
testcase_21 AC 188 ms
75,288 KB
testcase_22 AC 86 ms
75,340 KB
testcase_23 AC 80 ms
75,380 KB
testcase_24 AC 200 ms
75,440 KB
testcase_25 AC 223 ms
75,388 KB
testcase_26 AC 382 ms
75,304 KB
testcase_27 AC 91 ms
75,376 KB
testcase_28 AC 378 ms
75,188 KB
testcase_29 AC 81 ms
75,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N = int(input())

    c = 0
    i = 2
    while i * i < N:
        while N % i == 0:
            N /= i
            c += 1
        i += 1
    if N > 1:
        c += 1
    return c >= 3


def main():
    print('YES' if solve() else 'NO')


if __name__ == '__main__':
    main()
0