結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー matriematrie
提出日時 2021-01-19 22:58:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 161 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 10,484 KB
実行使用メモリ 249,440 KB
最終ジャッジ日時 2023-08-22 18:37:52
合計ジャッジ時間 6,313 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,744 KB
testcase_01 AC 16 ms
7,768 KB
testcase_02 AC 16 ms
7,828 KB
testcase_03 AC 40 ms
14,604 KB
testcase_04 AC 16 ms
7,836 KB
testcase_05 AC 16 ms
7,780 KB
testcase_06 AC 15 ms
7,788 KB
testcase_07 AC 15 ms
7,736 KB
testcase_08 AC 15 ms
7,740 KB
testcase_09 AC 16 ms
7,768 KB
testcase_10 AC 15 ms
7,776 KB
testcase_11 AC 15 ms
7,860 KB
testcase_12 AC 16 ms
7,776 KB
testcase_13 AC 16 ms
7,784 KB
testcase_14 AC 16 ms
7,784 KB
testcase_15 AC 16 ms
7,768 KB
testcase_16 AC 16 ms
7,768 KB
testcase_17 AC 15 ms
7,740 KB
testcase_18 AC 16 ms
7,820 KB
testcase_19 AC 115 ms
32,240 KB
testcase_20 AC 331 ms
80,396 KB
testcase_21 AC 16 ms
7,768 KB
testcase_22 AC 15 ms
7,768 KB
testcase_23 AC 16 ms
7,788 KB
testcase_24 AC 17 ms
7,780 KB
testcase_25 AC 568 ms
128,816 KB
testcase_26 AC 16 ms
7,772 KB
testcase_27 AC 15 ms
7,904 KB
testcase_28 AC 15 ms
7,796 KB
testcase_29 AC 15 ms
7,788 KB
testcase_30 AC 16 ms
7,860 KB
testcase_31 AC 15 ms
7,780 KB
testcase_32 AC 270 ms
67,216 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 497 ms
117,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m,l=map(int,input().split())
m-=1
n=l//m
L=list(range(n+1))
a,b=1,2
for i in L[1::2]:
	if L[i]<2:continue
	L[i::i]=n//i*[0]
	a+=1
	b+=i
print(max((l+1)*a-m*b,0))
0