結果

問題 No.2750 Number of Prime Factors
ユーザー ああいいああいい
提出日時 2024-05-23 17:50:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 85,048 KB
最終ジャッジ日時 2024-05-23 17:50:53
合計ジャッジ時間 3,145 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = 1
dat = [0] * (10 ** 6)
count = 0
C = 10 ** 6
for i in range(2,N):
	if dat[i] == 0:
		for j in range(i,C,i):
			dat[j] = 1
		if ans * i >= N:
			print(ans)
		else:
			ans *= i
			count += 1
print(count)
0