結果

問題 No.1705 Mode of long array
ユーザー tailstails
提出日時 2021-10-08 22:54:14
言語 cLay
(20231016-1)
結果
AC  
実行時間 61 ms / 3,000 ms
コード長 224 bytes
コンパイル時間 4,407 ms
コンパイル使用メモリ 178,800 KB
実行使用メモリ 14,280 KB
最終ジャッジ日時 2023-09-30 12:05:15
合計ジャッジ時間 8,985 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,384 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 3 ms
4,380 KB
testcase_07 AC 3 ms
4,376 KB
testcase_08 AC 3 ms
4,376 KB
testcase_09 AC 3 ms
4,380 KB
testcase_10 AC 3 ms
4,380 KB
testcase_11 AC 3 ms
4,376 KB
testcase_12 AC 3 ms
4,376 KB
testcase_13 AC 41 ms
13,636 KB
testcase_14 AC 28 ms
9,580 KB
testcase_15 AC 26 ms
5,252 KB
testcase_16 AC 32 ms
5,312 KB
testcase_17 AC 24 ms
5,220 KB
testcase_18 AC 20 ms
5,264 KB
testcase_19 AC 37 ms
7,576 KB
testcase_20 AC 24 ms
7,468 KB
testcase_21 AC 31 ms
13,596 KB
testcase_22 AC 45 ms
13,740 KB
testcase_23 AC 16 ms
4,380 KB
testcase_24 AC 16 ms
4,408 KB
testcase_25 AC 16 ms
4,388 KB
testcase_26 AC 16 ms
4,444 KB
testcase_27 AC 16 ms
4,384 KB
testcase_28 AC 16 ms
4,384 KB
testcase_29 AC 16 ms
4,384 KB
testcase_30 AC 16 ms
4,380 KB
testcase_31 AC 16 ms
4,384 KB
testcase_32 AC 16 ms
4,420 KB
testcase_33 AC 57 ms
13,488 KB
testcase_34 AC 58 ms
13,484 KB
testcase_35 AC 61 ms
13,656 KB
testcase_36 AC 59 ms
13,564 KB
testcase_37 AC 60 ms
13,620 KB
testcase_38 AC 59 ms
13,512 KB
testcase_39 AC 59 ms
13,668 KB
testcase_40 AC 57 ms
13,664 KB
testcase_41 AC 61 ms
13,484 KB
testcase_42 AC 61 ms
13,512 KB
testcase_43 AC 28 ms
14,280 KB
testcase_44 AC 27 ms
14,200 KB
testcase_45 AC 28 ms
14,060 KB
testcase_46 AC 27 ms
14,180 KB
testcase_47 AC 27 ms
14,076 KB
testcase_48 AC 27 ms
14,092 KB
testcase_49 AC 51 ms
13,744 KB
testcase_50 AC 52 ms
13,700 KB
testcase_51 AC 52 ms
13,740 KB
testcase_52 AC 52 ms
13,708 KB
testcase_53 AC 53 ms
13,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

segtree<ll>t;
ll@n,@m;
t.walloc(m,1);
rep(i,m){
	ll@a;
	t[m-1-i]=-a;
}
t.build();
ll@q;
rep(q){
	ll@u,@x,@y;
	if(u==1){
		t.add(m-x,m-x+1,-y);
	}
	if(u==2){
		t.add(m-x,m-x+1,y);
	}
	if(u==3){
		wt(m-t.getMinInd(0,m));
	}
}
0