結果

問題 No.777 再帰的ケーキ
ユーザー tailstails
提出日時 2018-12-24 01:18:46
言語 cLay
(20231016-1)
結果
AC  
実行時間 256 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 7,542 ms
コンパイル使用メモリ 225,576 KB
実行使用メモリ 30,588 KB
最終ジャッジ日時 2023-09-19 00:18:07
合計ジャッジ時間 12,140 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
9,516 KB
testcase_01 AC 3 ms
9,624 KB
testcase_02 AC 3 ms
9,596 KB
testcase_03 AC 3 ms
9,588 KB
testcase_04 AC 3 ms
9,568 KB
testcase_05 AC 3 ms
9,636 KB
testcase_06 AC 3 ms
9,560 KB
testcase_07 AC 2 ms
9,772 KB
testcase_08 AC 3 ms
9,640 KB
testcase_09 AC 3 ms
9,600 KB
testcase_10 AC 3 ms
9,524 KB
testcase_11 AC 3 ms
9,520 KB
testcase_12 AC 3 ms
9,636 KB
testcase_13 AC 2 ms
9,628 KB
testcase_14 AC 2 ms
9,524 KB
testcase_15 AC 2 ms
9,680 KB
testcase_16 AC 3 ms
9,564 KB
testcase_17 AC 3 ms
9,592 KB
testcase_18 AC 3 ms
9,684 KB
testcase_19 AC 2 ms
9,580 KB
testcase_20 AC 3 ms
9,556 KB
testcase_21 AC 5 ms
9,696 KB
testcase_22 AC 4 ms
9,720 KB
testcase_23 AC 3 ms
9,636 KB
testcase_24 AC 3 ms
9,696 KB
testcase_25 AC 4 ms
9,728 KB
testcase_26 AC 4 ms
9,660 KB
testcase_27 AC 4 ms
9,776 KB
testcase_28 AC 243 ms
30,456 KB
testcase_29 AC 256 ms
30,436 KB
testcase_30 AC 246 ms
30,460 KB
testcase_31 AC 245 ms
30,472 KB
testcase_32 AC 163 ms
30,484 KB
testcase_33 AC 116 ms
28,020 KB
testcase_34 AC 166 ms
30,484 KB
testcase_35 AC 203 ms
30,476 KB
testcase_36 AC 164 ms
30,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,a[2d5],b[2d5],c[2d5],d;
segtree<ll> t;
vector<pair<ll,ll>> v;
{
	rd(n,(a,b,c)(n));
	coordcomp(n,a);
	coordcomp(n,b);
	rep(i,n)b[i]*=-1;
	sortA(n,a,b,c);
	t.malloc(n+1,1);
	rep(i,n){
		d=t.getMinVal(0,1-b[i])-c[i];
		if(t.getMinVal(1-b[i],2-b[i])>d)t.change(1-b[i],2-b[i],d);
	}
	wt(-t.getMinVal(0,n+1));
}
0