結果

問題 No.36 素数が嫌い!
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-09 03:14:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 520 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 77,556 KB
最終ジャッジ日時 2023-08-30 03:30:51
合計ジャッジ時間 6,769 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 177 ms
77,124 KB
testcase_01 AC 231 ms
77,104 KB
testcase_02 AC 103 ms
72,992 KB
testcase_03 WA -
testcase_04 AC 107 ms
73,040 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 106 ms
77,028 KB
testcase_08 AC 105 ms
77,116 KB
testcase_09 AC 107 ms
77,232 KB
testcase_10 AC 107 ms
77,044 KB
testcase_11 AC 158 ms
77,028 KB
testcase_12 AC 259 ms
76,988 KB
testcase_13 AC 257 ms
77,244 KB
testcase_14 AC 202 ms
77,132 KB
testcase_15 AC 102 ms
72,936 KB
testcase_16 AC 102 ms
73,136 KB
testcase_17 AC 103 ms
73,312 KB
testcase_18 AC 104 ms
77,136 KB
testcase_19 AC 164 ms
77,212 KB
testcase_20 AC 258 ms
77,212 KB
testcase_21 AC 224 ms
77,164 KB
testcase_22 AC 227 ms
77,224 KB
testcase_23 AC 180 ms
77,032 KB
testcase_24 AC 187 ms
77,288 KB
testcase_25 AC 187 ms
76,996 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

N = int(input())
def make_divisors(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]
if len(make_divisors(N))<=3:
    print('NO')
else:
    print('YES')
    
0