結果

問題 No.2750 Number of Prime Factors
ユーザー Taiki0715Taiki0715
提出日時 2024-05-10 21:43:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 53,780 KB
最終ジャッジ日時 2024-05-10 21:43:27
合計ジャッジ時間 1,750 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,688 KB
testcase_01 AC 38 ms
53,068 KB
testcase_02 AC 38 ms
52,304 KB
testcase_03 AC 38 ms
52,104 KB
testcase_04 AC 36 ms
52,732 KB
testcase_05 AC 47 ms
52,548 KB
testcase_06 AC 38 ms
52,212 KB
testcase_07 AC 34 ms
52,396 KB
testcase_08 AC 35 ms
51,944 KB
testcase_09 AC 35 ms
52,060 KB
testcase_10 AC 35 ms
53,112 KB
testcase_11 AC 35 ms
52,500 KB
testcase_12 AC 35 ms
53,004 KB
testcase_13 AC 34 ms
53,216 KB
testcase_14 AC 35 ms
53,604 KB
testcase_15 AC 35 ms
52,356 KB
testcase_16 AC 36 ms
53,780 KB
testcase_17 AC 35 ms
52,532 KB
testcase_18 AC 36 ms
52,208 KB
testcase_19 AC 37 ms
53,164 KB
testcase_20 AC 36 ms
52,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59]
n=int(input())
now=1
for i in range(len(p)):
  if now*p[i]>n:
    print(i)
    exit(0)
  now*=p[i]
0