結果

問題 No.36 素数が嫌い!
ユーザー nebukuro09nebukuro09
提出日時 2016-10-27 14:13:53
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 465 ms
コンパイル使用メモリ 77,056 KB
実行使用メモリ 77,116 KB
最終ジャッジ日時 2024-05-03 07:02:04
合計ジャッジ時間 5,694 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 164 ms
76,736 KB
testcase_02 AC 80 ms
75,508 KB
testcase_03 AC 78 ms
75,648 KB
testcase_04 AC 78 ms
75,520 KB
testcase_05 AC 80 ms
76,288 KB
testcase_06 AC 81 ms
76,928 KB
testcase_07 AC 80 ms
76,544 KB
testcase_08 AC 78 ms
75,648 KB
testcase_09 AC 77 ms
75,684 KB
testcase_10 WA -
testcase_11 AC 121 ms
76,476 KB
testcase_12 AC 204 ms
76,460 KB
testcase_13 AC 204 ms
76,432 KB
testcase_14 AC 81 ms
76,604 KB
testcase_15 AC 79 ms
75,520 KB
testcase_16 AC 77 ms
75,520 KB
testcase_17 AC 78 ms
75,656 KB
testcase_18 AC 77 ms
75,392 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 105 ms
76,968 KB
testcase_25 WA -
testcase_26 AC 173 ms
76,700 KB
testcase_27 AC 213 ms
76,700 KB
testcase_28 AC 170 ms
76,544 KB
testcase_29 AC 231 ms
76,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = input()
rootN = int(math.sqrt(N))
i = 2
c = 0
while i <= rootN:
    while N % i == 0:
        N /= i
        c += 1
    if c > 2:
        print 'YES'
        exit()
    i += 1
print 'NO'
0