結果

問題 No.2803 Bocching Star
ユーザー tailstails
提出日時 2024-07-12 21:14:47
言語 cLay
(20240714-1)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 6,053 ms
コンパイル使用メモリ 208,584 KB
実行使用メモリ 13,720 KB
最終ジャッジ日時 2024-07-12 21:15:20
合計ジャッジ時間 9,082 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,812 KB
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 6 ms
6,944 KB
testcase_04 AC 46 ms
12,380 KB
testcase_05 AC 23 ms
10,216 KB
testcase_06 AC 6 ms
6,940 KB
testcase_07 AC 17 ms
6,944 KB
testcase_08 AC 10 ms
6,944 KB
testcase_09 AC 49 ms
11,736 KB
testcase_10 AC 58 ms
12,916 KB
testcase_11 AC 51 ms
12,020 KB
testcase_12 AC 15 ms
7,364 KB
testcase_13 AC 42 ms
11,844 KB
testcase_14 AC 28 ms
9,152 KB
testcase_15 AC 49 ms
11,972 KB
testcase_16 AC 25 ms
7,680 KB
testcase_17 AC 9 ms
6,944 KB
testcase_18 AC 7 ms
6,940 KB
testcase_19 AC 42 ms
10,436 KB
testcase_20 AC 25 ms
8,900 KB
testcase_21 AC 19 ms
8,008 KB
testcase_22 AC 19 ms
8,004 KB
testcase_23 AC 57 ms
13,160 KB
testcase_24 AC 56 ms
13,716 KB
testcase_25 AC 56 ms
13,720 KB
testcase_26 AC 57 ms
12,952 KB
testcase_27 AC 56 ms
13,208 KB
testcase_28 AC 56 ms
12,312 KB
testcase_29 AC 64 ms
12,444 KB
testcase_30 AC 56 ms
13,464 KB
testcase_31 AC 58 ms
12,188 KB
testcase_32 AC 58 ms
13,676 KB
testcase_33 AC 3 ms
7,616 KB
testcase_34 AC 2 ms
6,940 KB
testcase_35 AC 3 ms
6,944 KB
testcase_36 AC 2 ms
6,944 KB
testcase_37 AC 2 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@s,@p[n],q[],z[],a=0;
rep(i,n)q[i]=p[i];
sortA(n,q);
rep(i,n){
	ll c=bsearch_min[ll,j,0,n](p[i]<=q[j]);
	if((c+1==n||q[c+1]-p[i]>s)&&(c-1<0||p[i]-q[c-1]>s)){
		z[a++]=i+1;
	}
}
wt(a);
wt(z(a));
0