結果

問題 No.2650 [Cherry 6th Tune *] セイジャク
ユーザー tailstails
提出日時 2024-02-23 23:46:58
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 7,170 ms
コンパイル使用メモリ 218,928 KB
実行使用メモリ 13,760 KB
最終ジャッジ日時 2024-02-23 23:47:10
合計ジャッジ時間 11,057 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,488 KB
testcase_01 AC 3 ms
7,488 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 50 ms
13,504 KB
testcase_17 AC 49 ms
13,504 KB
testcase_18 AC 50 ms
13,504 KB
testcase_19 AC 49 ms
13,504 KB
testcase_20 AC 50 ms
13,504 KB
testcase_21 AC 49 ms
13,504 KB
testcase_22 AC 50 ms
13,504 KB
testcase_23 AC 33 ms
13,504 KB
testcase_24 AC 33 ms
13,504 KB
testcase_25 AC 33 ms
13,504 KB
testcase_26 AC 33 ms
13,504 KB
testcase_27 AC 33 ms
13,504 KB
testcase_28 AC 33 ms
13,504 KB
testcase_29 AC 33 ms
13,504 KB
testcase_30 AC 46 ms
13,632 KB
testcase_31 WA -
testcase_32 AC 21 ms
12,224 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]){
			(a,e[a])=(e[a],max(e[a],b));
		}else{
			d[a]=i+1;
			e[a]=b;
			++a;
		}
	}
}
rep(i,n){
	e[y[i]]=d[i]?:-1;
}
wtLn(e(n));
0