luogu#P4831. Scarlet loves WenHuaKe
Scarlet loves WenHuaKe
Background
Scarlet has started college. Before that, she worked hard on a Gaokao mock exam problem QAQ.
Problem Description
Scarlet tries to place cannons on an -row -column Chinese chessboard such that none of them can attack each other.
As everyone knows, Scarlet loves making trouble. She wants to ask how many valid configurations there are.
Input Format
One line with two integers, representing and .
Output Format
One integer, the number of configurations modulo .
4 4
90
Hint
For of the testdata, .
For another of the testdata, .
For another of the testdata, .
For the remaining of the testdata, .
For of the testdata, .
Translated by ChatGPT 5