結果

問題 No.36 素数が嫌い!
ユーザー ronpoo
提出日時 2023-08-23 14:29:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 381 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 82,076 KB
実行使用メモリ 59,200 KB
最終ジャッジ日時 2024-12-21 18:28:54
合計ジャッジ時間 4,257 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 17 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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)) <= 2:
    print('NO')
else:
    print('YES')
0