Skip to content

Commit 4889e7b

Browse files
committed
add docs now
1 parent 3954ec9 commit 4889e7b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

library/math/mod_division.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#pragma once
2+
//! https://nor-blog.pages.dev/posts/2023-11-27-std-exchange-cpp/
3+
//! @code
4+
//! int quotient = mod_div(x, y); // returns x * y^-1
5+
//! @endcode
6+
//! @time O(log(y))
7+
//! @space O(1)
28
const int mod = 998244353;
39
int mod_div(int x, int y) {
410
int m = mod, u = 1, v = 0;

tests/scripts/compile_commented_snippets.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ git submodule update
2020
echo "vector<pii> edges;"
2121
echo "vector<array<int,2>> eds;"
2222
echo "vector<array<int,3>> w_eds, queries;"
23-
echo "vector<mint> rhs;"
24-
echo "vector<vector<mint>> mat;"
23+
echo "vi rhs;"
24+
echo "vector<vi> mat;"
2525
echo "vector<vector<bool>> grid;"
2626
echo "int n,m,k,tl,tr,l,r,l1,r1,l2,r2,s_l,s_r,root_l,root_r,source,sink,total_flow,bccid,u,v,lsz,rsz,cols,cap,num;"
2727
} >entire_library_without_main

0 commit comments

Comments
 (0)