結果

問題 No.36 素数が嫌い!
ユーザー matriematrie
提出日時 2020-12-22 01:58:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 11,876 KB
実行使用メモリ 12,080 KB
最終ジャッジ日時 2023-10-21 12:21:53
合計ジャッジ時間 9,626 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
11,156 KB
testcase_01 WA -
testcase_02 AC 30 ms
10,252 KB
testcase_03 AC 28 ms
10,192 KB
testcase_04 AC 29 ms
10,252 KB
testcase_05 AC 30 ms
10,212 KB
testcase_06 AC 31 ms
10,272 KB
testcase_07 AC 31 ms
10,272 KB
testcase_08 AC 30 ms
10,256 KB
testcase_09 AC 30 ms
10,268 KB
testcase_10 WA -
testcase_11 AC 218 ms
11,144 KB
testcase_12 AC 755 ms
12,080 KB
testcase_13 AC 743 ms
12,080 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 28 ms
10,252 KB
testcase_17 AC 28 ms
10,160 KB
testcase_18 AC 30 ms
10,252 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 32 ms
11,392 KB
testcase_26 AC 422 ms
11,576 KB
testcase_27 AC 629 ms
11,904 KB
testcase_28 AC 416 ms
11,560 KB
testcase_29 AC 729 ms
12,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
l=list(range(2,int(n**(1/3))))
c=0
while c<3 and len(l)>0:
	t=l[0];
	if n%t<1:
		c+=1
		if n%(t*t)<1: c=3; break
	l=[i for i in l if i%t>0]
print("YES" if c>2 else "NO")
0