結果

問題 No.407 鴨等素数間隔列の数え上げ
ユーザー %20%20
提出日時 2018-01-12 17:06:05
言語 cLay
(20240104-1)
結果
AC  
実行時間 196 ms / 1,000 ms
コード長 171 bytes
コンパイル時間 1,902 ms
コンパイル使用メモリ 159,612 KB
実行使用メモリ 85,516 KB
最終ジャッジ日時 2023-09-18 23:53:00
合計ジャッジ時間 10,296 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 180 ms
85,224 KB
testcase_01 AC 182 ms
85,260 KB
testcase_02 AC 184 ms
85,248 KB
testcase_03 AC 182 ms
85,456 KB
testcase_04 AC 188 ms
85,276 KB
testcase_05 AC 187 ms
85,268 KB
testcase_06 AC 187 ms
85,256 KB
testcase_07 AC 188 ms
85,324 KB
testcase_08 AC 192 ms
85,316 KB
testcase_09 AC 189 ms
85,248 KB
testcase_10 AC 190 ms
85,308 KB
testcase_11 AC 185 ms
85,236 KB
testcase_12 AC 186 ms
85,260 KB
testcase_13 AC 184 ms
85,328 KB
testcase_14 AC 179 ms
85,212 KB
testcase_15 AC 184 ms
85,236 KB
testcase_16 AC 185 ms
85,320 KB
testcase_17 AC 187 ms
85,308 KB
testcase_18 AC 187 ms
85,240 KB
testcase_19 AC 191 ms
85,460 KB
testcase_20 AC 189 ms
85,460 KB
testcase_21 AC 186 ms
85,472 KB
testcase_22 AC 186 ms
85,288 KB
testcase_23 AC 191 ms
85,324 KB
testcase_24 AC 184 ms
85,328 KB
testcase_25 AC 187 ms
85,236 KB
testcase_26 AC 187 ms
85,328 KB
testcase_27 AC 185 ms
85,260 KB
testcase_28 AC 183 ms
85,236 KB
testcase_29 AC 183 ms
85,252 KB
testcase_30 AC 184 ms
85,468 KB
testcase_31 AC 183 ms
85,516 KB
testcase_32 AC 184 ms
85,432 KB
testcase_33 AC 195 ms
85,260 KB
testcase_34 AC 196 ms
85,244 KB
testcase_35 AC 193 ms
85,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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