結果

問題 No.1234 典型RMQ
ユーザー yuruhiyayuruhiya
提出日時 2020-10-08 20:00:46
言語 cLay
(20240104-1)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 5,147 ms
コンパイル使用メモリ 182,228 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-04-26 11:38:30
合計ジャッジ時間 8,112 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 112 ms
11,520 KB
testcase_07 AC 78 ms
5,888 KB
testcase_08 AC 122 ms
11,520 KB
testcase_09 AC 97 ms
8,448 KB
testcase_10 AC 113 ms
11,392 KB
testcase_11 AC 109 ms
11,392 KB
testcase_12 AC 96 ms
8,448 KB
testcase_13 AC 78 ms
6,144 KB
testcase_14 AC 97 ms
8,576 KB
testcase_15 AC 91 ms
8,576 KB
testcase_16 AC 113 ms
11,392 KB
testcase_17 AC 94 ms
8,576 KB
testcase_18 AC 67 ms
5,504 KB
testcase_19 AC 113 ms
11,520 KB
testcase_20 AC 57 ms
10,880 KB
testcase_21 AC 108 ms
11,520 KB
testcase_22 AC 80 ms
11,392 KB
testcase_23 AC 77 ms
11,392 KB
testcase_24 AC 78 ms
11,392 KB
testcase_25 AC 78 ms
11,392 KB
testcase_26 AC 77 ms
11,392 KB
testcase_27 AC 2 ms
5,376 KB
testcase_28 AC 2 ms
5,376 KB
testcase_29 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

segtree<ll>t;{ll@n;t.malloc(n,1);REP(i,n)rd(n),t[i]=n;t.build();ll@q;REP(q){ll@k,@l,@r,@c;t.add(--l,r,c-c*--k);if(k)wt(t.getMinVal(l,r));}}
0