結果

問題 No.36 素数が嫌い!
ユーザー lllllll88938494lllllll88938494
提出日時 2022-01-22 09:09:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 289 ms / 5,000 ms
コード長 399 bytes
コンパイル時間 1,428 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 76,056 KB
最終ジャッジ日時 2023-08-17 22:55:01
合計ジャッジ時間 6,688 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 186 ms
75,716 KB
testcase_01 AC 193 ms
75,592 KB
testcase_02 AC 71 ms
71,572 KB
testcase_03 AC 72 ms
71,688 KB
testcase_04 AC 73 ms
71,632 KB
testcase_05 AC 74 ms
75,940 KB
testcase_06 AC 77 ms
75,764 KB
testcase_07 AC 77 ms
75,636 KB
testcase_08 AC 75 ms
75,628 KB
testcase_09 AC 76 ms
75,656 KB
testcase_10 AC 75 ms
75,592 KB
testcase_11 AC 119 ms
75,636 KB
testcase_12 AC 212 ms
75,500 KB
testcase_13 AC 210 ms
75,592 KB
testcase_14 AC 160 ms
75,776 KB
testcase_15 AC 76 ms
71,804 KB
testcase_16 AC 78 ms
71,520 KB
testcase_17 AC 76 ms
71,064 KB
testcase_18 AC 76 ms
75,640 KB
testcase_19 AC 169 ms
76,056 KB
testcase_20 AC 289 ms
75,880 KB
testcase_21 AC 253 ms
75,608 KB
testcase_22 AC 200 ms
75,612 KB
testcase_23 AC 157 ms
75,632 KB
testcase_24 AC 167 ms
75,808 KB
testcase_25 AC 186 ms
75,812 KB
testcase_26 AC 206 ms
75,584 KB
testcase_27 AC 194 ms
75,580 KB
testcase_28 AC 203 ms
75,660 KB
testcase_29 AC 213 ms
75,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())

def  y(n):
    yaku=[]
    for i in range(2,int(n**0.5)+1):
        if n%i==0:
            yaku.append(i)
            if i == n//i:
                continue
            yaku.append(n//i)
    return yaku

t=y(n)

if len(t) == 0:
    print('NO')

else:
    for i in t:
        tt=y(i)
        if len(tt) > 0:
            print('YES')
            break   
    else:
        print('NO')
0