Skip to content

Commit

Permalink
sets MOD as const to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
iagorrr committed May 19, 2024
1 parent ea6d790 commit 5391b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/math/matrix-exponentiation.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ll MOD = 1'000'000'007;
const ll MOD = 1'000'000'007;

template <typename T>
vector<vector<T>> prod(vector<vector<T>> &a,
Expand Down

0 comments on commit 5391b05

Please sign in to comment.