Problem C. String Mod
时间限制 5500 ms
内存限制 256 MB
There are strings of length $L$ consisting of the first $k$ $(2\le k\le 26)$ lowercase letters.The total number of strings is $k^L$.
For each pair$(i,j)$($\ 0\leq i,j\leq n-1\ $),please count the number of strings which contain $p$ lowercase letters 'a' and $q$ lowercase letters 'b', satisfying $p \equiv i\ (mod\ n) $ and $ q \equiv j\ (mod\ n) $ .
Print the matrix $A$,$A[i][j]$ is the answer of pair$(i,j)$.
输入数据
输出数据
For each test case, output $n$ lines contain $n$ integers.
which is the answer modulo $P=10^9+9$,satisfying $n|(P-1)$.
样例输入
样例输出
$ Mathjax font initiator $