8000 fix mat.cpp · atcoder/live_library@39163cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 39163cb

Browse files
committed
fix mat.cpp
1 parent 43b10de commit 39163cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mat.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://youtu.be/ylWYSurx10A?t=2352
12
template<typename T>
23
struct Matrix {
34
int h, w;
@@ -19,7 +20,7 @@ struct Matrix {
1920
}
2021
return r;
2122
}
22-
Matrix pow(int t) const {
23+
Matrix pow(long long t) const {
2324
assert(h == w);
2425
if (!t) return Matrix(h,h).unit();
2526
if (t == 1) return *this;

0 commit comments

Comments
 (0)
0