結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー matriematrie
提出日時 2021-01-19 21:31:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 174 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 245,632 KB
最終ジャッジ日時 2024-05-09 23:40:47
合計ジャッジ時間 7,620 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,496 KB
testcase_01 AC 28 ms
10,624 KB
testcase_02 AC 27 ms
10,496 KB
testcase_03 AC 63 ms
17,152 KB
testcase_04 AC 28 ms
10,496 KB
testcase_05 AC 29 ms
10,496 KB
testcase_06 AC 26 ms
10,624 KB
testcase_07 AC 28 ms
10,496 KB
testcase_08 AC 27 ms
10,496 KB
testcase_09 AC 27 ms
10,496 KB
testcase_10 AC 27 ms
10,624 KB
testcase_11 AC 27 ms
10,496 KB
testcase_12 AC 26 ms
10,752 KB
testcase_13 AC 27 ms
10,624 KB
testcase_14 AC 28 ms
10,624 KB
testcase_15 AC 28 ms
10,624 KB
testcase_16 AC 28 ms
10,368 KB
testcase_17 AC 27 ms
10,624 KB
testcase_18 AC 27 ms
10,496 KB
testcase_19 AC 159 ms
33,920 KB
testcase_20 AC 431 ms
81,152 KB
testcase_21 AC 27 ms
10,624 KB
testcase_22 AC 27 ms
10,624 KB
testcase_23 AC 27 ms
10,624 KB
testcase_24 AC 27 ms
10,624 KB
testcase_25 AC 742 ms
127,872 KB
testcase_26 AC 28 ms
10,624 KB
testcase_27 AC 27 ms
10,496 KB
testcase_28 AC 28 ms
10,624 KB
testcase_29 AC 27 ms
10,624 KB
testcase_30 AC 27 ms
10,624 KB
testcase_31 AC 27 ms
10,496 KB
testcase_32 AC 360 ms
68,352 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 658 ms
116,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m,l=map(int,input().split())
n=l//(m-1)+1
L=list(range(n))
P=set()
for i in L:
	if L[i]<2:continue
	L[::i]=[0]*(n//i+(n%i>0))
	P.add(i)
c=0
for p in P:c+=l-(m-1)*p+1
print(c)
0