結果

問題 No.2650 [Cherry 6th Tune *] セイジャク
ユーザー tailstails
提出日時 2024-02-24 00:23:09
言語 cLay
(20240104-1)
結果
AC  
実行時間 58 ms / 2,500 ms
コード長 304 bytes
コンパイル時間 8,309 ms
コンパイル使用メモリ 219,080 KB
実行使用メモリ 13,888 KB
最終ジャッジ日時 2024-02-24 00:23:22
合計ジャッジ時間 10,294 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,616 KB
testcase_01 AC 3 ms
7,616 KB
testcase_02 AC 12 ms
10,432 KB
testcase_03 AC 8 ms
8,384 KB
testcase_04 AC 39 ms
11,328 KB
testcase_05 AC 30 ms
10,816 KB
testcase_06 AC 15 ms
9,536 KB
testcase_07 AC 39 ms
10,816 KB
testcase_08 AC 11 ms
9,152 KB
testcase_09 AC 58 ms
13,888 KB
testcase_10 AC 58 ms
13,888 KB
testcase_11 AC 58 ms
13,760 KB
testcase_12 AC 58 ms
13,760 KB
testcase_13 AC 55 ms
13,888 KB
testcase_14 AC 57 ms
13,888 KB
testcase_15 AC 57 ms
13,888 KB
testcase_16 AC 54 ms
13,632 KB
testcase_17 AC 51 ms
13,632 KB
testcase_18 AC 54 ms
13,632 KB
testcase_19 AC 53 ms
13,632 KB
testcase_20 AC 53 ms
13,632 KB
testcase_21 AC 53 ms
13,632 KB
testcase_22 AC 53 ms
13,632 KB
testcase_23 AC 33 ms
13,632 KB
testcase_24 AC 31 ms
13,632 KB
testcase_25 AC 32 ms
13,632 KB
testcase_26 AC 31 ms
13,632 KB
testcase_27 AC 32 ms
13,632 KB
testcase_28 AC 32 ms
13,632 KB
testcase_29 AC 32 ms
13,632 KB
testcase_30 AC 50 ms
13,760 KB
testcase_31 AC 32 ms
13,760 KB
testcase_32 AC 21 ms
12,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@a,@x[n],y[],d[]{},e[],@t,@(l,r)[t];
sortA_index(n,x,y);
rrep(i,t){
	ll a=bsearch_min[ll,j,0,n](x[j]>=l[i]);
	ll b=bsearch_min[ll,j,0,n](x[j]>r[i]);
	while(a<b){
		if(d[a]){
			(e[a],a)=(max(e[a],b),e[a]);
		}else{
			d[a]=i+1;
			e[a]=b;
			++a;
		}
	}
}
rep(i,n){
	e[y[i]]=d[i]?:-1;
}
wtLn(e(n));
0