結果

問題 No.36 素数が嫌い!
ユーザー ixmelixmel
提出日時 2017-03-30 20:59:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-21 08:54:15
合計ジャッジ時間 22,881 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1,007 ms
7,860 KB
testcase_02 AC 15 ms
7,860 KB
testcase_03 AC 16 ms
7,936 KB
testcase_04 AC 15 ms
7,860 KB
testcase_05 AC 22 ms
7,804 KB
testcase_06 AC 20 ms
7,944 KB
testcase_07 AC 21 ms
7,948 KB
testcase_08 AC 15 ms
7,808 KB
testcase_09 AC 15 ms
7,800 KB
testcase_10 WA -
testcase_11 AC 530 ms
7,904 KB
testcase_12 AC 1,594 ms
7,816 KB
testcase_13 AC 1,579 ms
7,896 KB
testcase_14 AC 22 ms
7,900 KB
testcase_15 AC 16 ms
7,872 KB
testcase_16 AC 16 ms
7,780 KB
testcase_17 AC 16 ms
7,816 KB
testcase_18 AC 15 ms
7,904 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 397 ms
7,920 KB
testcase_25 WA -
testcase_26 AC 1,323 ms
7,852 KB
testcase_27 AC 1,584 ms
7,940 KB
testcase_28 AC 1,309 ms
7,816 KB
testcase_29 AC 1,751 ms
7,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

co=0
n=int(input())
for i in range(2,int(n**0.5)+1):
	while n%i==0:
		co+=1
		if co==3:break
		n/=i
	if co==3:break
if co==3:print("YES")
else:print("NO")
0