結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,887 ms
10,080 KB
testcase_01 AC 2,096 ms
10,080 KB
testcase_02 AC 29 ms
10,048 KB
testcase_03 AC 29 ms
10,080 KB
testcase_04 WA -
testcase_05 AC 42 ms
10,080 KB
testcase_06 AC 40 ms
10,080 KB
testcase_07 AC 40 ms
10,048 KB
testcase_08 AC 30 ms
10,080 KB
testcase_09 AC 28 ms
10,080 KB
testcase_10 AC 39 ms
10,080 KB
testcase_11 AC 1,128 ms
10,048 KB
testcase_12 AC 3,499 ms
10,048 KB
testcase_13 WA -
testcase_14 AC 41 ms
10,080 KB
testcase_15 AC 29 ms
10,080 KB
testcase_16 AC 29 ms
10,048 KB
testcase_17 AC 29 ms
10,048 KB
testcase_18 AC 29 ms
10,080 KB
testcase_19 AC 1,499 ms
10,080 KB
testcase_20 AC 3,674 ms
10,080 KB
testcase_21 AC 2,986 ms
10,080 KB
testcase_22 AC 2,934 ms
10,080 KB
testcase_23 AC 1,758 ms
10,080 KB
testcase_24 AC 750 ms
10,080 KB
testcase_25 AC 2,056 ms
10,080 KB
testcase_26 AC 2,484 ms
10,080 KB
testcase_27 AC 3,307 ms
10,080 KB
testcase_28 AC 2,511 ms
10,080 KB
testcase_29 AC 3,559 ms
10,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=m=int(input())
c,i=0,2
while n>=i*i:
	while m%i<1: m/=i; c+=1
	i+=1
	if c>2: break
c+=n>1
print(["YES","NO"][c<3])
0