結果

問題 No.36 素数が嫌い!
ユーザー dangodango
提出日時 2023-06-15 20:50:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 562 ms / 5,000 ms
コード長 132 bytes
コンパイル時間 703 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 76,428 KB
最終ジャッジ日時 2023-09-05 23:41:26
合計ジャッジ時間 9,614 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 433 ms
75,992 KB
testcase_01 AC 308 ms
76,132 KB
testcase_02 AC 69 ms
71,352 KB
testcase_03 AC 69 ms
71,360 KB
testcase_04 AC 67 ms
71,472 KB
testcase_05 AC 75 ms
76,008 KB
testcase_06 AC 75 ms
76,236 KB
testcase_07 AC 74 ms
75,804 KB
testcase_08 AC 71 ms
76,128 KB
testcase_09 AC 74 ms
76,048 KB
testcase_10 AC 74 ms
76,264 KB
testcase_11 AC 119 ms
75,676 KB
testcase_12 AC 218 ms
75,752 KB
testcase_13 AC 219 ms
75,736 KB
testcase_14 AC 217 ms
76,324 KB
testcase_15 AC 69 ms
71,316 KB
testcase_16 AC 68 ms
71,404 KB
testcase_17 AC 69 ms
71,328 KB
testcase_18 AC 73 ms
75,984 KB
testcase_19 AC 287 ms
76,116 KB
testcase_20 AC 427 ms
75,988 KB
testcase_21 AC 549 ms
76,428 KB
testcase_22 AC 420 ms
76,044 KB
testcase_23 AC 270 ms
76,112 KB
testcase_24 AC 295 ms
75,980 KB
testcase_25 AC 442 ms
76,124 KB
testcase_26 AC 562 ms
76,288 KB
testcase_27 AC 441 ms
76,076 KB
testcase_28 AC 551 ms
76,104 KB
testcase_29 AC 466 ms
76,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M = N = int(input())
C, I = 0, 2
while I ** 2 <= M:
	while N % I == 0: C += 1; N /= I
	I += 1
print(["YES", "NO"][C + (N != 1) < 3])
0