結果

問題 No.1234 典型RMQ
ユーザー tailstails
提出日時 2020-09-18 22:35:03
言語 cLay
(20240104-1)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 3,986 ms
コンパイル使用メモリ 179,856 KB
実行使用メモリ 9,216 KB
最終ジャッジ日時 2024-04-26 11:16:13
合計ジャッジ時間 6,924 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 42 ms
8,704 KB
testcase_07 AC 32 ms
5,632 KB
testcase_08 AC 44 ms
9,088 KB
testcase_09 AC 38 ms
7,168 KB
testcase_10 AC 44 ms
8,832 KB
testcase_11 AC 42 ms
8,832 KB
testcase_12 AC 38 ms
7,168 KB
testcase_13 AC 32 ms
5,760 KB
testcase_14 AC 38 ms
7,168 KB
testcase_15 AC 36 ms
7,040 KB
testcase_16 AC 42 ms
8,960 KB
testcase_17 AC 39 ms
7,168 KB
testcase_18 AC 28 ms
5,376 KB
testcase_19 AC 43 ms
9,216 KB
testcase_20 AC 28 ms
8,448 KB
testcase_21 AC 41 ms
8,960 KB
testcase_22 AC 34 ms
8,960 KB
testcase_23 AC 34 ms
8,960 KB
testcase_24 AC 36 ms
8,960 KB
testcase_25 AC 34 ms
8,960 KB
testcase_26 AC 33 ms
8,960 KB
testcase_27 AC 2 ms
5,376 KB
testcase_28 AC 1 ms
5,376 KB
testcase_29 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,a[1d5],q,k,l,r,c;
segtree_Add_Minval<ll>t;
{
	rd(n,a(n),q);
	t.walloc(n,1);
	t[0..n-1]=a[0..];
	t.build();
	rep(q){
		rd(k,l--,r,c);
		if(k==1){
			t.add(l,r,c);
		}else{
			wt(t.getMinVal(l,r));
		}
	}
}
0