Skip to content

Commit ab75352

Browse files
committed
another one
1 parent 547087a commit ab75352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/strings/longest_common_subsequence/lcs_queries.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
vi lcs_queries(const auto& s, const auto& t,
1717
const vector<array<int, 3>>& queries) {
1818
int n = sz(s), m = sz(t), q = sz(queries);
19-
vector<vector<array<int, 3>>> qs(n);
19+
vector<basic_string<array<int, 3>>> qs(n);
2020
rep(i, 0, q) {
2121
auto [s_r, t_le, t_ri] = queries[i];
2222
if (s_r == 0 || t_le == m) continue;
23-
qs[s_r - 1].push_back({t_le, t_ri, i});
23+
qs[s_r - 1] += {t_le, t_ri, i};
2424
}
2525
lcs_dp lcs(t);
2626
vi res(q);

0 commit comments

Comments
 (0)