結果

問題 No.106 素数が嫌い!2
ユーザー TawaraTawara
提出日時 2015-09-15 18:25:51
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,143 ms / 5,000 ms
コード長 167 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 6,580 KB
実行使用メモリ 52,672 KB
最終ジャッジ日時 2023-09-26 12:06:09
合計ジャッジ時間 9,104 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 549 ms
21,416 KB
testcase_01 AC 12 ms
5,856 KB
testcase_02 AC 11 ms
5,900 KB
testcase_03 AC 12 ms
5,836 KB
testcase_04 AC 558 ms
21,952 KB
testcase_05 AC 1,143 ms
51,612 KB
testcase_06 AC 1,133 ms
52,672 KB
testcase_07 AC 1,137 ms
37,008 KB
testcase_08 AC 74 ms
8,052 KB
testcase_09 AC 78 ms
7,756 KB
testcase_10 AC 1,126 ms
37,012 KB
testcase_11 AC 478 ms
26,356 KB
testcase_12 AC 1,090 ms
40,968 KB
testcase_13 AC 11 ms
5,904 KB
testcase_14 AC 11 ms
5,928 KB
testcase_15 AC 12 ms
5,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,raw_input().split())
fn = [0]*(N+1)
for i in xrange(2,N+1):
	if fn[i] == 0:
		for j in xrange(i,N+1,i):
			fn[j] += 1
print len(filter(lambda x:x>=K,fn))
0