Skip to content

Commit b67f341

Browse files
committed
change test
1 parent e3bc0e7 commit b67f341

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/atcoder-abc331-f.test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ int main() {
1515
std::string S;
1616
std::cin >> N >> Q >> S;
1717
std::vector<RHString> init;
18+
init.reserve(N);
1819
for (char c : S) {
19-
init.emplace_back(rh, std::string{c});
20+
init.emplace_back(rh, c);
2021
}
2122
StaticSegTree<RHString, std::plus<RHString>, E> seg(init);
2223
while (Q--) {
@@ -26,7 +27,7 @@ int main() {
2627
int x;
2728
char c;
2829
std::cin >> x >> c;
29-
seg.set(x - 1, RHString(rh, std::string{c}));
30+
seg.set(x - 1, RHString(rh, c));
3031
} else {
3132
int L, R;
3233
std::cin >> L >> R;

0 commit comments

Comments
 (0)