結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー matriematrie
提出日時 2021-01-19 22:56:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 252,364 KB
最終ジャッジ日時 2024-05-10 00:24:52
合計ジャッジ時間 6,614 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
10,752 KB
testcase_01 AC 31 ms
10,624 KB
testcase_02 WA -
testcase_03 AC 58 ms
17,280 KB
testcase_04 WA -
testcase_05 AC 30 ms
10,880 KB
testcase_06 AC 30 ms
10,624 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 WA -
testcase_09 AC 30 ms
10,752 KB
testcase_10 AC 30 ms
10,752 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 31 ms
10,624 KB
testcase_14 AC 30 ms
10,752 KB
testcase_15 WA -
testcase_16 AC 29 ms
10,624 KB
testcase_17 AC 30 ms
10,752 KB
testcase_18 AC 31 ms
10,752 KB
testcase_19 AC 138 ms
34,808 KB
testcase_20 AC 364 ms
83,072 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 31 ms
10,624 KB
testcase_24 AC 31 ms
10,752 KB
testcase_25 AC 592 ms
131,388 KB
testcase_26 AC 30 ms
10,880 KB
testcase_27 WA -
testcase_28 AC 30 ms
10,624 KB
testcase_29 AC 30 ms
10,752 KB
testcase_30 WA -
testcase_31 AC 31 ms
10,752 KB
testcase_32 AC 294 ms
69,912 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 AC 554 ms
120,052 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((l+1)*a-m*b)
0