Skip to content

Commit 738bbf1

Browse files
committed
Merge branch 'dev' into linear_kth_par_nit
2 parents 9f6681b + 2a164c1 commit 738bbf1

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.github/workflows/programming_team_code_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Run library checker and aizu tests
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
run: oj-verify all --tle 60 --timeout 21600
30+
run: oj-verify all --tle 60 --timeout 900
3131

3232
grep_clangformat_cppcheck:
3333
runs-on: ubuntu-latest

library/data_structures/dsu/range_parallel_equivalence_classes.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
UF get_rp_dsu(const vector<array<int, 3>>& rests, int n) {
88
vector<vector<pii>> rests_by_len(n + 1);
99
for (auto [l1, l2, len] : rests)
10-
rests_by_len[len].push_back({l1, l2});
10+
rests_by_len[len].emplace_back(l1, l2);
1111
UF uf(n);
1212
for (int len = n; len > 0; len--)
1313
for (auto [l1, l2] : rests_by_len[len])
1414
if (uf.join(l1, l2))
15-
rests_by_len[len - 1].push_back({l1 + 1, l2 + 1});
15+
rests_by_len[len - 1].emplace_back(l1 + 1, l2 + 1);
1616
return uf;
1717
}

library/math/matrix_related/xor_basis_unordered_intersection.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
template<class T>
77
basis<T> intersection(const basis<T>& u,
88
const basis<T>& v) {
9-
vector<array<T, 2>> w;
10-
for (T e : u.b) w.push_back({e, e});
9+
vector<pair<T, T>> w(sz(u.b));
10+
rep(i, 0, sz(w)) w[i] = {u.b[i], u.b[i]};
1111
basis<T> res;
1212
for (T e : v.b) {
1313
T s = 0;
1414
for (auto [x, y] : w)
1515
if ((e ^ x) < e) e ^= x, s ^= y;
16-
if (e) w.push_back({e, s});
16+
if (e) w.emplace_back(e, s);
1717
else res.insert(s);
1818
}
1919
return res;

tests/.config/.cppcheck_suppression_list

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ useStlAlgorithm:../kactl/content/numerical/FastFourierTransform.h:53
1616
useStlAlgorithm:../library/graphs/strongly_connected_components/add_edges_strongly_connected.hpp:58
1717
useStlAlgorithm:../library/math/matrix_related/row_reduce.hpp:28
1818
useStlAlgorithm:../library/math/count_paths/count_paths_triangle.hpp:24
19-
useStlAlgorithm:../library/math/matrix_related/xor_basis_unordered_intersection.hpp:10
2019
useStlAlgorithm:../library/math/matrix_related/xor_basis_unordered.hpp:16
2120
shadowFunction:../kactl/content/graph/BinaryLifting.h:17
2221
unknownMacro:../kactl/content/graph/BinaryLifting.h:18

tests/scripts/build_pdf.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ rm ../library/trees/edge_centroid_decomp_uncommon/contour_range_update.hpp || ex
3535
rm ../library/trees/edge_centroid_decomp_uncommon/count_paths_per_length.hpp || exit 1
3636
rm ../library/trees/edge_centroid_decomp_uncommon/sum_adjacent.hpp || exit 1
3737
rm ../library/trees/ladder_decomposition/ladder_decomposition.hpp || exit 1
38-
rm ../library/trees/linear_kth_path.hpp || exit 1
3938

4039
# remove links in comments: these aren't useful in the PDF, and are usually the
4140
# longest words which extend into the next column

0 commit comments

Comments
 (0)