結果

問題 No.106 素数が嫌い!2
ユーザー convexineqconvexineq
提出日時 2020-12-04 01:18:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 215 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 158,812 KB
最終ジャッジ日時 2023-10-12 12:24:32
合計ジャッジ時間 3,355 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
158,812 KB
testcase_01 AC 72 ms
70,960 KB
testcase_02 AC 72 ms
71,276 KB
testcase_03 AC 71 ms
71,208 KB
testcase_04 AC 143 ms
150,708 KB
testcase_05 AC 147 ms
99,032 KB
testcase_06 AC 136 ms
91,604 KB
testcase_07 AC 142 ms
91,928 KB
testcase_08 AC 90 ms
85,324 KB
testcase_09 AC 86 ms
77,384 KB
testcase_10 AC 150 ms
91,840 KB
testcase_11 AC 104 ms
83,240 KB
testcase_12 AC 215 ms
156,288 KB
testcase_13 AC 72 ms
71,380 KB
testcase_14 AC 74 ms
71,284 KB
testcase_15 AC 75 ms
75,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
r = [0]*(n+1)
for i in range(2,n+1):
    if r[i]==0:
        for j in range(i,n+1,i):
            r[j] += 1

ans = len([i for i in r if i >= k])
print(ans)
0