結果

問題 No.1657 Sum is Prime (Easy Version)
ユーザー tailstails
提出日時 2021-08-27 22:03:32
言語 cLay
(20240104-1)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 2,578 ms
コンパイル使用メモリ 161,440 KB
実行使用メモリ 8,072 KB
最終ジャッジ日時 2023-09-19 02:35:31
合計ジャッジ時間 4,336 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,420 KB
testcase_01 AC 2 ms
7,600 KB
testcase_02 AC 9 ms
8,052 KB
testcase_03 AC 2 ms
7,620 KB
testcase_04 AC 3 ms
7,424 KB
testcase_05 AC 3 ms
7,604 KB
testcase_06 AC 2 ms
7,484 KB
testcase_07 AC 3 ms
7,424 KB
testcase_08 AC 3 ms
7,484 KB
testcase_09 AC 3 ms
7,504 KB
testcase_10 AC 3 ms
7,424 KB
testcase_11 AC 2 ms
7,480 KB
testcase_12 AC 9 ms
7,996 KB
testcase_13 AC 6 ms
7,792 KB
testcase_14 AC 10 ms
8,008 KB
testcase_15 AC 9 ms
8,052 KB
testcase_16 AC 6 ms
7,712 KB
testcase_17 AC 7 ms
7,712 KB
testcase_18 AC 7 ms
7,704 KB
testcase_19 AC 7 ms
7,932 KB
testcase_20 AC 8 ms
7,864 KB
testcase_21 AC 9 ms
8,064 KB
testcase_22 AC 14 ms
7,980 KB
testcase_23 AC 13 ms
8,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int p[1d6];
ll f(ll x){
	return x<3?0:Prime(x,p);
}
{
	ll@l,@r;
	wt(r==1?0:f(r+1)-f(l)+f(2*r)-f(2*l+1));
}
0