Skip to content

Commit 99eac09

Browse files
committed
Merge branch 'dev' into plus_equals_basic_string
2 parents 582aa20 + 85c1660 commit 99eac09

29 files changed

+49
-120
lines changed

.github/workflows/programming_team_code_ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Run tests
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
run: oj-verify all --tle 10 --timeout 21600
30+
run: oj-verify all --tle 60 --timeout 21600
3131

3232
check_format_lint:
3333
runs-on: ubuntu-latest
@@ -53,7 +53,7 @@ jobs:
5353
sudo apt install -y wget software-properties-common
5454
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
5555
- name: Install dependencies
56-
run: sudo apt update && sudo apt install -y clang-tidy-18
56+
run: sudo apt update && sudo apt install -y clang-tidy-19
5757
- name: clang-tidy
5858
run: make --directory=tests/ clangtidy
5959

@@ -68,8 +68,10 @@ jobs:
6868
runs-on: ubuntu-latest
6969
steps:
7070
- uses: actions/checkout@v2
71+
- name: Set up LLVM repository
72+
run: wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 19
7173
- name: Install dependencies
72-
run: wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
74+
run: sudo apt update && sudo apt install -y clang-19
7375
- name: Compile all tests
7476
run: make --directory=tests/ compile_clang
7577

@@ -88,7 +90,8 @@ jobs:
8890
run: |
8991
sudo apt update
9092
sudo apt install texlive texlive-latex-extra rename nodejs npm
91-
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
93+
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 19
94+
sudo apt update && sudo apt install -y clang-19
9295
- name: build ptc
9396
run: make --directory=tests/ ptc
9497
- uses: actions/upload-artifact@v4
@@ -126,7 +129,7 @@ jobs:
126129
sudo apt install -y wget software-properties-common
127130
wget -O - https://apt.llvm.org/llvm.sh | sudo bash
128131
- name: Install dependencies
129-
run: sudo apt update && sudo apt install -y clang-format-18
132+
run: sudo apt update && sudo apt install -y clang-format-19
130133
- name: Combine includes and force push to main branch
131134
run: |
132135
git config --local user.name github-actions

.verify-helper/timestamps.remote.json

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@
2929
"tests/library_checker_aizu_tests/data_structures/lazy_segment_tree_constructor.test.cpp": "2024-12-14 19:50:29 -0600",
3030
"tests/library_checker_aizu_tests/data_structures/lazy_segment_tree_inc.test.cpp": "2024-12-05 10:41:42 -0600",
3131
"tests/library_checker_aizu_tests/data_structures/lazy_segment_tree_inc_constructor.test.cpp": "2024-12-05 10:41:42 -0600",
32-
"tests/library_checker_aizu_tests/data_structures/line_tree_aizu.test.cpp": "2025-01-24 11:38:16 -0700",
33-
"tests/library_checker_aizu_tests/data_structures/line_tree_lib_checker.test.cpp": "2025-01-24 11:38:16 -0700",
32+
"tests/library_checker_aizu_tests/data_structures/line_tree_aizu.test.cpp": "2025-02-10 14:50:36 -0700",
33+
"tests/library_checker_aizu_tests/data_structures/line_tree_lib_checker.test.cpp": "2025-02-10 14:50:36 -0700",
3434
"tests/library_checker_aizu_tests/data_structures/merge_sort_tree.test.cpp": "2024-11-17 14:04:03 -0600",
35-
"tests/library_checker_aizu_tests/data_structures/mode_query.test.cpp": "2025-02-10 13:36:12 -0700",
36-
"tests/library_checker_aizu_tests/data_structures/permutation_tree.test.cpp": "2025-02-10 13:41:14 -0700",
37-
"tests/library_checker_aizu_tests/data_structures/persistent_queue_tree.test.cpp": "2025-01-24 11:38:16 -0700",
35+
"tests/library_checker_aizu_tests/data_structures/mode_query.test.cpp": "2024-12-05 10:41:42 -0600",
36+
"tests/library_checker_aizu_tests/data_structures/permutation_tree.test.cpp": "2024-12-14 15:47:13 -0600",
37+
"tests/library_checker_aizu_tests/data_structures/persistent_queue_tree.test.cpp": "2025-02-10 14:50:36 -0700",
3838
"tests/library_checker_aizu_tests/data_structures/persistent_seg_tree.test.cpp": "2024-12-05 10:41:42 -0600",
39-
"tests/library_checker_aizu_tests/data_structures/pq_ds_undo_sliding_window.test.cpp": "2025-01-24 11:38:16 -0700",
40-
"tests/library_checker_aizu_tests/data_structures/pq_ds_undo_with_dsu.test.cpp": "2025-01-24 11:38:16 -0700",
41-
"tests/library_checker_aizu_tests/data_structures/range_parallel_dsu.test.cpp": "2025-02-10 13:38:04 -0700",
39+
"tests/library_checker_aizu_tests/data_structures/pq_ds_undo_sliding_window.test.cpp": "2025-02-10 14:50:36 -0700",
40+
"tests/library_checker_aizu_tests/data_structures/pq_ds_undo_with_dsu.test.cpp": "2025-02-10 14:50:36 -0700",
41+
"tests/library_checker_aizu_tests/data_structures/range_parallel_dsu.test.cpp": "2024-12-15 14:34:10 -0600",
4242
"tests/library_checker_aizu_tests/data_structures/rmq_disjoint_sparse_table.test.cpp": "2024-12-15 14:34:10 -0600",
4343
"tests/library_checker_aizu_tests/data_structures/rmq_linear.test.cpp": "2024-12-15 14:34:10 -0600",
44-
"tests/library_checker_aizu_tests/data_structures/rmq_sparse_table.test.cpp": "2025-01-24 11:38:16 -0700",
44+
"tests/library_checker_aizu_tests/data_structures/rmq_sparse_table.test.cpp": "2025-02-10 14:50:36 -0700",
4545
"tests/library_checker_aizu_tests/data_structures/rmq_sparse_table_inc.test.cpp": "2024-12-15 14:34:10 -0600",
4646
"tests/library_checker_aizu_tests/data_structures/simple_tree.test.cpp": "2024-12-14 15:47:13 -0600",
4747
"tests/library_checker_aizu_tests/data_structures/simple_tree_inc.test.cpp": "2024-12-21 00:23:10 -0500",
@@ -59,30 +59,10 @@
5959
"tests/library_checker_aizu_tests/graphs/hopcroft_karp_aizu.test.cpp": "2025-01-24 10:59:16 -0700",
6060
"tests/library_checker_aizu_tests/graphs/hopcroft_karp_lib_checker.test.cpp": "2025-01-24 10:59:16 -0700",
6161
"tests/library_checker_aizu_tests/graphs/mst.test.cpp": "2024-11-17 14:04:03 -0600",
62-
"tests/library_checker_aizu_tests/graphs/strongly_connected_components_aizu.test.cpp": "2025-02-10 13:50:35 -0700",
63-
"tests/library_checker_aizu_tests/graphs/strongly_connected_components_lib_checker.test.cpp": "2025-02-10 13:50:35 -0700",
64-
"tests/library_checker_aizu_tests/graphs/two_edge_components.test.cpp": "2025-02-10 14:02:34 -0700",
65-
"tests/library_checker_aizu_tests/handmade_tests/count_paths_forest.test.cpp": "2024-12-15 14:34:10 -0600",
66-
"tests/library_checker_aizu_tests/handmade_tests/dsu_size.test.cpp": "2024-12-14 19:50:29 -0600",
67-
"tests/library_checker_aizu_tests/handmade_tests/dynamic_bitset.test.cpp": "2025-01-24 11:38:16 -0700",
68-
"tests/library_checker_aizu_tests/handmade_tests/edge_cd_small_trees.test.cpp": "2024-12-15 17:01:11 -0600",
69-
"tests/library_checker_aizu_tests/handmade_tests/fib_matrix_expo.test.cpp": "2024-12-14 19:50:29 -0600",
70-
"tests/library_checker_aizu_tests/handmade_tests/functional_graph.test.cpp": "2024-12-15 17:01:11 -0600",
71-
"tests/library_checker_aizu_tests/handmade_tests/lca_ladder_forest.test.cpp": "2025-01-24 11:38:16 -0700",
72-
"tests/library_checker_aizu_tests/handmade_tests/manacher.test.cpp": "2024-12-14 19:50:29 -0600",
73-
"tests/library_checker_aizu_tests/handmade_tests/merge_st_and_wavelet.test.cpp": "2024-12-14 19:50:29 -0600",
74-
"tests/library_checker_aizu_tests/handmade_tests/mobius.test.cpp": "2025-01-24 11:38:16 -0700",
7562
"tests/library_checker_aizu_tests/handmade_tests/mod_int.test.cpp": "2024-12-14 19:50:29 -0600",
7663
"tests/library_checker_aizu_tests/handmade_tests/n_choose_k.test.cpp": "2025-01-15 00:22:31 -0700",
7764
"tests/library_checker_aizu_tests/handmade_tests/permutation_tree_small.test.cpp": "2025-02-10 13:41:14 -0700",
7865
"tests/library_checker_aizu_tests/handmade_tests/rmq_small_n.test.cpp": "2024-12-14 19:50:29 -0600",
79-
"tests/library_checker_aizu_tests/handmade_tests/sa_find_subarray.test.cpp": "2025-01-24 11:38:16 -0700",
80-
"tests/library_checker_aizu_tests/handmade_tests/seg_tree_find.test.cpp": "2024-12-14 19:50:29 -0600",
81-
"tests/library_checker_aizu_tests/handmade_tests/seg_tree_find_small.test.cpp": "2024-12-14 19:50:29 -0600",
82-
"tests/library_checker_aizu_tests/loops/chooses.test.cpp": "2025-01-24 11:38:16 -0700",
83-
"tests/library_checker_aizu_tests/loops/quotients.test.cpp": "2024-11-17 14:04:03 -0600",
84-
"tests/library_checker_aizu_tests/loops/submasks.test.cpp": "2025-01-24 11:38:16 -0700",
85-
"tests/library_checker_aizu_tests/loops/supermasks.test.cpp": "2025-01-24 11:38:16 -0700",
8666
"tests/library_checker_aizu_tests/math/binary_exponentiation_mod.test.cpp": "2024-11-17 14:04:03 -0600",
8767
"tests/library_checker_aizu_tests/math/binary_matrix_mult.test.cpp": "2024-11-17 14:04:03 -0600",
8868
"tests/library_checker_aizu_tests/math/count_paths.test.cpp": "2025-01-15 00:22:31 -0700",
@@ -99,21 +79,10 @@
9979
"tests/library_checker_aizu_tests/math/solve_linear_mod.test.cpp": "2024-12-14 15:47:13 -0600",
10080
"tests/library_checker_aizu_tests/math/tetration.test.cpp": "2024-11-17 14:04:03 -0600",
10181
"tests/library_checker_aizu_tests/math/totient.test.cpp": "2024-11-17 14:04:03 -0600",
102-
"tests/library_checker_aizu_tests/math/xor_basis.test.cpp": "2025-01-24 11:38:16 -0700",
103-
"tests/library_checker_aizu_tests/math/xor_basis_intersection.test.cpp": "2025-01-24 10:59:16 -0700",
104-
"tests/library_checker_aizu_tests/monotonic_stack_related/cartesian_binary_tree.test.cpp": "2025-01-24 11:38:16 -0700",
105-
"tests/library_checker_aizu_tests/monotonic_stack_related/cartesian_k_ary_tree.test.cpp": "2025-01-24 11:38:16 -0700",
106-
"tests/library_checker_aizu_tests/monotonic_stack_related/max_rect_histogram.test.cpp": "2025-01-24 11:38:16 -0700",
107-
"tests/library_checker_aizu_tests/strings/kmp.test.cpp": "2024-12-14 19:50:29 -0600",
10882
"tests/library_checker_aizu_tests/strings/lcs_dp.test.cpp": "2024-12-05 10:41:42 -0600",
10983
"tests/library_checker_aizu_tests/strings/lcs_queries.test.cpp": "2025-02-10 13:52:44 -0700",
11084
"tests/library_checker_aizu_tests/strings/lcs_queries_merge_sort_tree.test.cpp": "2024-12-05 10:41:42 -0600",
11185
"tests/library_checker_aizu_tests/strings/manacher.test.cpp": "2024-12-14 19:50:29 -0600",
112-
"tests/library_checker_aizu_tests/strings/multi_matching_bs.test.cpp": "2025-01-24 11:38:16 -0700",
113-
"tests/library_checker_aizu_tests/strings/prefix_function.test.cpp": "2025-01-24 11:38:16 -0700",
114-
"tests/library_checker_aizu_tests/strings/sa_cmp.test.cpp": "2025-01-24 11:38:16 -0700",
115-
"tests/library_checker_aizu_tests/strings/sa_sort_pairs.test.cpp": "2025-01-24 11:38:16 -0700",
116-
"tests/library_checker_aizu_tests/strings/single_matching_bs.test.cpp": "2025-01-24 11:38:16 -0700",
11786
"tests/library_checker_aizu_tests/strings/trie.test.cpp": "2024-12-05 10:41:42 -0600",
11887
"tests/library_checker_aizu_tests/strings/wildcard_pattern_matching.test.cpp": "2024-12-14 19:50:29 -0600",
11988
"tests/library_checker_aizu_tests/trees/count_paths_per_length.test.cpp": "2024-12-15 14:34:10 -0600",
@@ -122,6 +91,5 @@
12291
"tests/library_checker_aizu_tests/trees/edge_cd_count_paths_per_length.test.cpp": "2024-12-15 17:01:11 -0600",
12392
"tests/library_checker_aizu_tests/trees/edge_cd_reroot_dp.test.cpp": "2024-12-15 17:01:11 -0600",
12493
"tests/library_checker_aizu_tests/trees/kth_path_ladder.test.cpp": "2024-12-15 14:34:10 -0600",
125-
"tests/library_checker_aizu_tests/trees/lca_all_methods_aizu.test.cpp": "2025-01-24 11:38:16 -0700",
12694
"tests/library_checker_aizu_tests/trees/subtree_isomorphism.test.cpp": "2024-12-15 14:34:10 -0600"
12795
}

library/contest/dynamic_bitset.hpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

library/data_structures/uncommon/priority_queue_of_updates.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ template<class DS, class... ARGS> struct pq_updates {
3434
vector<upd> extra;
3535
int idx = sz(upd_st) - 1, lowest_pri = INT_MAX;
3636
for (auto it = rbegin(mp);
37-
2 * sz(extra) < sz(upd_st) - idx; it++) {
37+
2 * sz(extra) < sz(upd_st) - idx; it++) {
3838
auto [pri, idx_sk] = *it;
3939
extra.push_back(upd_st[idx_sk]);
4040
idx = min(idx, idx_sk), lowest_pri = pri;

library/loops/chooses.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
//! @time O(n choose k)
66
//! @space O(1)
77
for (int mask = (1 << k) - 1; mask < (1 << n);
8-
mask = next_subset(mask))
8+
mask = next_subset(mask))

library/loops/submasks.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
//! of every mask of size n
66
//! @space O(1)
77
for (int submask = mask; submask;
8-
submask = (submask - 1) & mask)
8+
submask = (submask - 1) & mask)

library/loops/supermasks.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
//! of every mask of size n
77
//! @space O(1)
88
for (int supermask = mask; supermask < (1 << n);
9-
supermask = (supermask + 1) | mask)
9+
supermask = (supermask + 1) | mask)

library/math/partitions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ vector<ll> partitions(int n) {
1212
rep(i, 1, n) {
1313
ll sum = 0;
1414
for (int j = 1, pent = 1, sign = 1; pent <= i;
15-
j++, pent += 3 * j - 2, sign = -sign) {
15+
j++, pent += 3 * j - 2, sign = -sign) {
1616
if (pent + j <= i)
1717
sum += dp[i - pent - j] * sign + mod;
1818
sum += dp[i - pent] * sign + mod;

library/math/prime_sieve/mobius.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
vi mobius(100'005);
55
mobius[1] = 1;
66
rep(i, 1, sz(mobius)) for (int j = i + i; j < sz(mobius);
7-
j += i) mobius[j] -= mobius[i];
7+
j += i) mobius[j] -= mobius[i];

library/monotonic_stack/cartesian_binary_tree.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
vi cart_binary_tree(const vi& l) {
2525
vi p(l);
2626
rep(i, 0, sz(p)) for (int j = i - 1; j != l[i];
27-
j = l[j]) if (l[j] == l[i]) p[j] =
28-
i;
27+
j = l[j]) if (l[j] == l[i]) p[j] = i;
2928
return p;
3029
}

0 commit comments

Comments
 (0)