結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー %20%20
提出日時 2018-01-12 17:12:44
言語 cLay
(20240104-1)
結果
AC  
実行時間 231 ms / 1,000 ms
コード長 114 bytes
コンパイル時間 1,990 ms
コンパイル使用メモリ 159,916 KB
実行使用メモリ 85,520 KB
最終ジャッジ日時 2023-09-18 23:52:10
合計ジャッジ時間 11,342 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 225 ms
85,332 KB
testcase_01 AC 219 ms
85,216 KB
testcase_02 AC 220 ms
85,288 KB
testcase_03 AC 221 ms
85,248 KB
testcase_04 AC 220 ms
85,488 KB
testcase_05 AC 220 ms
85,468 KB
testcase_06 AC 221 ms
85,260 KB
testcase_07 AC 221 ms
85,280 KB
testcase_08 AC 219 ms
85,456 KB
testcase_09 AC 220 ms
85,348 KB
testcase_10 AC 216 ms
85,324 KB
testcase_11 AC 222 ms
85,220 KB
testcase_12 AC 218 ms
85,248 KB
testcase_13 AC 220 ms
85,252 KB
testcase_14 AC 223 ms
85,468 KB
testcase_15 AC 221 ms
85,244 KB
testcase_16 AC 220 ms
85,468 KB
testcase_17 AC 221 ms
85,268 KB
testcase_18 AC 220 ms
85,264 KB
testcase_19 AC 220 ms
85,280 KB
testcase_20 AC 225 ms
85,244 KB
testcase_21 AC 222 ms
85,256 KB
testcase_22 AC 222 ms
85,520 KB
testcase_23 AC 224 ms
85,300 KB
testcase_24 AC 224 ms
85,404 KB
testcase_25 AC 231 ms
85,400 KB
testcase_26 AC 228 ms
85,256 KB
testcase_27 AC 223 ms
85,388 KB
testcase_28 AC 221 ms
85,288 KB
testcase_29 AC 219 ms
85,244 KB
testcase_30 AC 219 ms
85,244 KB
testcase_31 AC 219 ms
85,248 KB
testcase_32 AC 221 ms
85,248 KB
testcase_33 AC 227 ms
85,332 KB
testcase_34 AC 228 ms
85,308 KB
testcase_35 AC 226 ms
85,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll N,L,x,p[2d7],j;
{
	rd(N,L);
	rep(i,2,3d3)if(!p[i])p[i*(2..1d7/i)]=1;
	x-=p[2..L/~-N]?0:~L+(2..)*~-N;
	wt(x);
}
0