题号:NC233875
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
You are given integers

and

. Find the number of

by

integer matrices
)
that satisfy all of the following conditions, modulo

.

for all

.

for all

.

for all

.

.
输入描述:
The first line contains integers
, and
.
输出描述:
Print the answer.
备注:
原题链接:https://codeforces.com/gym/102978/problem/A