結果

問題 No.36 素数が嫌い!
ユーザー vwxyzvwxyz
提出日時 2022-02-17 02:24:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 395 ms / 5,000 ms
コード長 860 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 92,264 KB
最終ジャッジ日時 2023-09-11 17:23:14
合計ジャッジ時間 10,844 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 325 ms
92,044 KB
testcase_01 AC 342 ms
92,052 KB
testcase_02 AC 248 ms
91,392 KB
testcase_03 AC 245 ms
91,420 KB
testcase_04 AC 248 ms
91,248 KB
testcase_05 AC 246 ms
92,104 KB
testcase_06 AC 253 ms
92,124 KB
testcase_07 AC 250 ms
91,904 KB
testcase_08 AC 248 ms
91,640 KB
testcase_09 AC 245 ms
91,292 KB
testcase_10 AC 247 ms
92,092 KB
testcase_11 AC 287 ms
92,112 KB
testcase_12 AC 377 ms
91,932 KB
testcase_13 AC 388 ms
91,940 KB
testcase_14 AC 252 ms
92,264 KB
testcase_15 AC 251 ms
91,280 KB
testcase_16 AC 247 ms
91,340 KB
testcase_17 AC 242 ms
91,548 KB
testcase_18 AC 242 ms
91,492 KB
testcase_19 AC 306 ms
92,072 KB
testcase_20 AC 386 ms
92,020 KB
testcase_21 AC 359 ms
92,016 KB
testcase_22 AC 374 ms
92,148 KB
testcase_23 AC 322 ms
92,116 KB
testcase_24 AC 279 ms
92,000 KB
testcase_25 AC 329 ms
92,088 KB
testcase_26 AC 342 ms
92,040 KB
testcase_27 AC 372 ms
92,028 KB
testcase_28 AC 339 ms
92,160 KB
testcase_29 AC 395 ms
91,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
import copy
import decimal
import fractions
import heapq
import itertools
import math
import random
import sys
from collections import Counter, deque,defaultdict
from functools import lru_cache,reduce
from heapq import heappush,heappop,heapify,heappushpop,_heappop_max,_heapify_max
def _heappush_max(heap,item):
    heap.append(item)
    heapq._siftdown_max(heap, 0, len(heap)-1)
def _heappushpop_max(heap, item):
    if heap and item < heap[0]:
        item, heap[0] = heap[0], item
        heapq._siftup_max(heap, 0)
    return item
from math import gcd as GCD
read=sys.stdin.read
readline=sys.stdin.readline
readlines=sys.stdin.readlines

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