結果

問題 No.36 素数が嫌い!
ユーザー mahiro72mahiro72
提出日時 2021-10-08 21:16:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 8,472 KB
最終ジャッジ日時 2023-09-30 09:21:13
合計ジャッジ時間 15,197 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 383 ms
8,452 KB
testcase_01 AC 632 ms
8,352 KB
testcase_02 AC 16 ms
7,824 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 21 ms
7,756 KB
testcase_08 AC 16 ms
8,308 KB
testcase_09 AC 17 ms
8,292 KB
testcase_10 AC 17 ms
8,288 KB
testcase_11 AC 711 ms
7,904 KB
testcase_12 AC 2,152 ms
7,796 KB
testcase_13 WA -
testcase_14 AC 509 ms
8,304 KB
testcase_15 AC 16 ms
8,304 KB
testcase_16 AC 16 ms
7,968 KB
testcase_17 AC 15 ms
7,800 KB
testcase_18 AC 16 ms
8,356 KB
testcase_19 AC 326 ms
8,420 KB
testcase_20 AC 850 ms
8,352 KB
testcase_21 AC 620 ms
8,296 KB
testcase_22 AC 639 ms
8,360 KB
testcase_23 AC 389 ms
8,300 KB
testcase_24 AC 432 ms
8,472 KB
testcase_25 AC 425 ms
8,392 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

def f(x):
    r = set()
    for i in range(1,int(x**0.5)+1):
        if x%i==0:
            r.add(x//i)
            r.add(i)
    r.discard(1)
    return r

l = f(N)

for i in l:
    for j in range(2,int(i**0.5)+1):
        if i%j==0:
            exit(print('YES'))
print('NO')
0