cp-library

競技プログラミング用 C++ ライブラリ

View the Project on GitHub qandori/cp-library

:heavy_check_mark: test/matrix_product.test.cpp

test/matrix_product.test.cpp · GitHub で見る

検証問題

依存ライブラリ

コード

#define PROBLEM "https://judge.yosupo.jp/problem/matrix_product"
#include "fixtures/matrix_common.hpp"

int main() {
	FastInput in;
	FastOutput out;
	int n = 0, m = 0, k = 0;
	in.read(n); in.read(m); in.read(k);
	auto a = read_matrix(in, n, m), b = read_matrix(in, m, k);
	write_matrix(out, a * b);
}
Back to top page