cp-library

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

View the Project on GitHub qandori/cp-library

:heavy_check_mark: test/factorial_mod.test.cpp

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

検証問題

依存ライブラリ

コード

#define PROBLEM "https://judge.yosupo.jp/problem/factorial"
#include "../math/factorial_mod.hpp"
#include "../components/fast_io.hpp"
int main() {
	FastInput in;
	FastOutput out;
	int t = 0; in.read(t);
	while (t--) { std::uint64_t n = 0; in.read(n); out.println(factorial_mod(n).val()); }
}
Back to top page