結果

問題 No.106 素数が嫌い!2
ユーザー pluto77pluto77
提出日時 2016-03-28 13:57:49
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 213 ms / 5,000 ms
コード長 237 bytes
コンパイル時間 1,785 ms
コンパイル使用メモリ 76,328 KB
実行使用メモリ 234,652 KB
最終ジャッジ日時 2024-04-10 04:49:50
合計ジャッジ時間 5,615 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 186 ms
234,652 KB
testcase_01 AC 157 ms
232,424 KB
testcase_02 AC 157 ms
232,852 KB
testcase_03 AC 158 ms
232,880 KB
testcase_04 AC 185 ms
234,152 KB
testcase_05 AC 213 ms
234,444 KB
testcase_06 AC 213 ms
234,160 KB
testcase_07 AC 207 ms
234,092 KB
testcase_08 AC 171 ms
234,324 KB
testcase_09 AC 202 ms
234,056 KB
testcase_10 AC 210 ms
234,292 KB
testcase_11 AC 178 ms
234,256 KB
testcase_12 AC 213 ms
234,040 KB
testcase_13 AC 151 ms
232,628 KB
testcase_14 AC 153 ms
232,348 KB
testcase_15 AC 155 ms
232,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_106

n,k=map(int,raw_input().split())
s=[0 for i in xrange(20000001)]


for i in xrange(2,n+1):
 if s[i]==0:
  for j in xrange(i,n+1,i):
   s[j]+=1
   
res=0
for i in xrange(2,n+1):
 if s[i]>=k:
  res+=1

print res
0