ACMORE
Vjudge
杭电HDUOJ
杭电HDUOJ
北京大学POJ
sacul
登陆
注册
当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
建议使用的浏览器:
谷歌Chrome
火狐Firefox
Opera浏览器
微软Edge浏览器
QQ浏览器
360浏览器
傲游浏览器
6372:sacul
题目描述
Patrick Star found a kind of magical matrixs, he named them $HMBB$ !!!
We use $p$ to express the $c$-th prime number.
The size of $HMBB_i$ is $p^i * p^i$ !
What is more surprising is that :
1. For any $n$, the element on the i-th row j-th column $HMBB_n[i][j]$ = $(C(i, j)\ mod\ p) > 0)$ ? $1$ : $0$.
2. Where $C(i, j)$ is count of method to choose $j$ balls (unordered) from $i$ balls which are pairwise distinct.
3. Note that rows and columns both count from zero.
Patrick Star defined $F[n][k]$ the sum of all elements of $(HMBB_n)^k$, $F[n][k] = \sum_{i = 0}^{p^n-1}\sum_{j=0}^{p^n-1}HMBB_n^k[i][j]$
Now Patrick wants to know $(\sum_{i=1}^n\sum_{j=1}^kF[i][j])\ mod\ (10^9 + 7)$ !
输入解释
The first line contain a integer $T$ (no morn than 10), the following is $T$ test case, for each test case :
Each line contains contains three integer c, n, k ($0 < n \le 10^9$, $0 < c, k \le 10^5$). Separated by an white space.
输出解释
For each test case output one line denotes the answer that Patrick Star wants to know.
输入样例
1 1 1 1
输出样例
3
来自杭电HDUOJ的附加信息
Recommend
chendu
该题目是Virtual Judge题目,来自
杭电HDUOJ
题目来源
2018 Multi-University Training Contest 6
源链接:
HDU-6372
最后修改于
2020-10-25T23:30:45+00:00
由爬虫自动更新
共提交
0
次
通过率
--
%
时间上限
内存上限
2000/1000MS(Java/Others)
32768/32768K(Java/Others)
登陆或注册
以提交代码