시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 2 | 1 | 1 | 50.000% |
bobo is a big fan of linear algebra! He plans to count the number of $k$-dimension subspaces in $\mathbb{F}_q^n$ modulo $p$.
For those who are not familiar with linear algebra:
$4$ integers $q, n, k, p$ ($2 \leq q \leq 10^9, 1 \leq k \leq n \leq 10^9, 2 \leq p \leq 2 \cdot 10^5$).
It is guaranteed that $p$ and $q$ are prime numbers.
A single integer denotes the number of subspaces.
2 3 2 100003
7