結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 645 ms
8,324 KB
testcase_01 AC 634 ms
8,388 KB
testcase_02 AC 16 ms
7,936 KB
testcase_03 AC 16 ms
7,968 KB
testcase_04 AC 17 ms
7,820 KB
testcase_05 AC 19 ms
7,828 KB
testcase_06 AC 18 ms
7,840 KB
testcase_07 AC 18 ms
7,876 KB
testcase_08 AC 16 ms
8,448 KB
testcase_09 AC 19 ms
8,420 KB
testcase_10 AC 18 ms
8,320 KB
testcase_11 AC 274 ms
7,864 KB
testcase_12 AC 810 ms
7,852 KB
testcase_13 AC 805 ms
7,824 KB
testcase_14 AC 509 ms
8,352 KB
testcase_15 AC 16 ms
8,284 KB
testcase_16 AC 15 ms
7,832 KB
testcase_17 AC 15 ms
7,872 KB
testcase_18 AC 15 ms
8,436 KB
testcase_19 AC 370 ms
8,452 KB
testcase_20 AC 1,260 ms
8,436 KB
testcase_21 AC 619 ms
8,296 KB
testcase_22 AC 716 ms
8,292 KB
testcase_23 AC 490 ms
8,404 KB
testcase_24 AC 434 ms
8,464 KB
testcase_25 AC 426 ms
8,468 KB
testcase_26 AC 773 ms
7,796 KB
testcase_27 AC 709 ms
7,916 KB
testcase_28 AC 756 ms
7,916 KB
testcase_29 AC 789 ms
7,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

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

l = f(N)

for i in l:
    if len(f(i))>0:exit(print('YES'))
print('NO')
0