Skip to content

Commit b30c6f8

Browse files
author
Cameron Custer
committed
use ranges::count in lcs_dp test
1 parent a73392b commit b30c6f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/library_checker_aizu_tests/strings/lcs_dp.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ int main() {
1313
rep(j, 0, 2) {
1414
lcs_dp lcs(vi(all(t)));
1515
for (char c : s) lcs.push_onto_s(c);
16-
res[j] = int(count(begin(lcs.dp), end(lcs.dp), -1));
16+
res[j] = int(ranges::count(lcs.dp, -1));
1717
swap(s, t);
1818
}
1919
assert(res[0] == res[1]);

0 commit comments

Comments
 (0)