
Math(数学题)
文章平均质量分 57
Chen_yuazzy
The best way to predict the future is to create it.
预测未来的最好办法是去创造它。
---Alan Kay
展开
-
【CodeForces 630K】Indivisibility(容斥原理)
K. Indivisibilitytime limit per test0.5 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputIT City company developing computer game原创 2017-04-15 22:24:13 · 467 阅读 · 0 评论 -
【POJ 1995】Raising Modulo Numbers(快速幂)
Raising Modulo NumbersDescriptionPeople are different. Some secretly read magazines full of interesting girls’ pictures, others create an A-bomb in their cellar, others like using Windows, and some lik原创 2017-08-27 12:21:16 · 625 阅读 · 0 评论 -
【HDU 1575】Tr A(矩阵快速幂)
Tr ADescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input数据的第一行是一个T,表示有T组数据。 每组数据的第一行有n(2 <= n <= 10)和k(2 <= k < 10^9)两个数据。接下来有n行,每行有n个数据,每个数据的范围是[0,9],表示方阵A的内容。 Output对应每组数据,输出Tr(A^k)%99原创 2017-08-27 12:30:25 · 456 阅读 · 0 评论