結果

問題 No.2750 Number of Prime Factors
ユーザー hiro1729hiro1729
提出日時 2024-05-10 21:22:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,604 KB
実行使用メモリ 53,420 KB
最終ジャッジ日時 2024-05-10 21:22:53
合計ジャッジ時間 1,835 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,676 KB
testcase_01 AC 38 ms
52,768 KB
testcase_02 AC 38 ms
52,992 KB
testcase_03 AC 37 ms
52,800 KB
testcase_04 AC 36 ms
52,120 KB
testcase_05 AC 34 ms
52,236 KB
testcase_06 AC 36 ms
52,696 KB
testcase_07 AC 37 ms
52,404 KB
testcase_08 AC 36 ms
52,692 KB
testcase_09 AC 36 ms
52,768 KB
testcase_10 AC 36 ms
52,224 KB
testcase_11 AC 35 ms
52,060 KB
testcase_12 AC 37 ms
52,504 KB
testcase_13 AC 35 ms
52,828 KB
testcase_14 AC 36 ms
51,876 KB
testcase_15 AC 35 ms
52,948 KB
testcase_16 AC 36 ms
52,932 KB
testcase_17 AC 36 ms
53,228 KB
testcase_18 AC 36 ms
52,692 KB
testcase_19 AC 38 ms
52,580 KB
testcase_20 AC 35 ms
53,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input
R = range
P = print
def I(): return int(S())
def M(): return map(int, S().split())
def L(): return list(M())
def O(): return list(map(int, open(0).read().split()))
def yn(b): print("Yes" if b else "No")
biga = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
smaa = "abcdefghijklmnopqrstuvwxyz"

pr = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53]

n = I()
q = 1
c = 0
while q <= n:
	q *= pr[c]
	c += 1
print(c - 1)
0