結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 604 ms
8,208 KB
testcase_01 AC 631 ms
8,260 KB
testcase_02 AC 15 ms
7,764 KB
testcase_03 AC 13 ms
7,924 KB
testcase_04 AC 14 ms
7,912 KB
testcase_05 AC 18 ms
7,804 KB
testcase_06 AC 18 ms
7,848 KB
testcase_07 AC 16 ms
7,784 KB
testcase_08 AC 15 ms
8,364 KB
testcase_09 AC 17 ms
8,484 KB
testcase_10 AC 17 ms
8,340 KB
testcase_11 AC 258 ms
7,916 KB
testcase_12 AC 777 ms
7,852 KB
testcase_13 AC 765 ms
7,808 KB
testcase_14 AC 489 ms
8,360 KB
testcase_15 AC 14 ms
8,344 KB
testcase_16 AC 15 ms
7,800 KB
testcase_17 AC 15 ms
7,856 KB
testcase_18 AC 16 ms
8,308 KB
testcase_19 AC 364 ms
8,340 KB
testcase_20 AC 1,231 ms
8,452 KB
testcase_21 AC 596 ms
8,296 KB
testcase_22 AC 693 ms
8,476 KB
testcase_23 AC 486 ms
8,256 KB
testcase_24 AC 427 ms
8,332 KB
testcase_25 AC 424 ms
8,372 KB
testcase_26 AC 774 ms
7,808 KB
testcase_27 AC 675 ms
7,768 KB
testcase_28 AC 739 ms
7,772 KB
testcase_29 AC 762 ms
7,916 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
    
for i in f(N):
    if len(f(i))>0:exit(print('YES'))
print('NO')
0