This documentation is automatically generated by competitive-verifier/competitive-verifier
// @brief Matrix Product (dynamic modint)
#define PROBLEM "https://judge.yosupo.jp/problem/matrix_product"
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("tune=native")
#include "cp-algo/linalg/matrix.hpp"
#include <bits/stdc++.h>
using namespace std;
using namespace cp_algo::linalg;
using namespace cp_algo::math;
using base = dynamic_modint<int64_t>;
const int64_t mod = 998244353;
void solve() {
base::switch_mod(mod);
int n, m, k;
cin >> n >> m >> k;
matrix<base> a(n, m), b(m, k);
a.read();
b.read();
(a * b).print();
}
signed main() {
//freopen("input.txt", "r", stdin);
ios::sync_with_stdio(0);
cin.tie(0);
int t = 1;
while(t--) {
solve();
}
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
bundled_code = language.bundle(path, basedir=basedir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 327, in update
assert len(lines) == len(uncommented_lines)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Env | Name | Status | Elapsed | Memory |
---|---|---|---|---|
g++ | example_00 |
![]() |
5 ms | 4 MB |
g++ | example_01 |
![]() |
5 ms | 4 MB |
g++ | example_02 |
![]() |
5 ms | 4 MB |
g++ | max_random_00 |
![]() |
372 ms | 37 MB |
g++ | max_random_01 |
![]() |
388 ms | 37 MB |
g++ | max_random_02 |
![]() |
374 ms | 37 MB |
g++ | random_00 |
![]() |
176 ms | 22 MB |
g++ | random_01 |
![]() |
175 ms | 21 MB |
g++ | random_02 |
![]() |
144 ms | 17 MB |
g++ | signed_overflow_00 |
![]() |
6 ms | 4 MB |
g++ | small_00 |
![]() |
6 ms | 4 MB |
g++ | small_01 |
![]() |
5 ms | 4 MB |
g++ | small_02 |
![]() |
5 ms | 4 MB |
g++ | small_03 |
![]() |
6 ms | 4 MB |
g++ | small_04 |
![]() |
5 ms | 4 MB |
g++ | small_05 |
![]() |
6 ms | 4 MB |
g++ | small_06 |
![]() |
5 ms | 4 MB |
g++ | small_07 |
![]() |
6 ms | 4 MB |
g++ | small_08 |
![]() |
5 ms | 4 MB |
g++ | small_09 |
![]() |
6 ms | 4 MB |
g++ | unsigned_overflow_00 |
![]() |
5 ms | 4 MB |