結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 218 ms
85,384 KB
testcase_01 AC 221 ms
85,320 KB
testcase_02 AC 223 ms
85,260 KB
testcase_03 AC 224 ms
85,308 KB
testcase_04 AC 222 ms
85,252 KB
testcase_05 AC 221 ms
85,428 KB
testcase_06 AC 223 ms
85,452 KB
testcase_07 AC 223 ms
85,392 KB
testcase_08 AC 222 ms
85,260 KB
testcase_09 AC 225 ms
85,248 KB
testcase_10 AC 230 ms
85,320 KB
testcase_11 AC 225 ms
85,260 KB
testcase_12 AC 221 ms
85,320 KB
testcase_13 AC 224 ms
85,264 KB
testcase_14 AC 225 ms
85,304 KB
testcase_15 AC 225 ms
85,248 KB
testcase_16 AC 223 ms
85,320 KB
testcase_17 AC 227 ms
85,456 KB
testcase_18 AC 225 ms
85,248 KB
testcase_19 AC 224 ms
85,252 KB
testcase_20 AC 225 ms
85,392 KB
testcase_21 AC 224 ms
85,248 KB
testcase_22 AC 221 ms
85,248 KB
testcase_23 AC 222 ms
85,260 KB
testcase_24 AC 222 ms
85,248 KB
testcase_25 AC 227 ms
85,316 KB
testcase_26 AC 223 ms
85,320 KB
testcase_27 AC 224 ms
85,324 KB
testcase_28 AC 220 ms
85,304 KB
testcase_29 AC 225 ms
85,460 KB
testcase_30 AC 221 ms
85,304 KB
testcase_31 AC 221 ms
85,264 KB
testcase_32 AC 224 ms
85,244 KB
testcase_33 AC 231 ms
85,252 KB
testcase_34 AC 229 ms
85,260 KB
testcase_35 AC 221 ms
85,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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