![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
分治
文章平均质量分 79
「已注销」
这个作者很懒,什么都没留下…
展开
-
Codeforces 742A. Arpa’s hard exam and Mehrdad’s naive cheat
A. Arpa’s hard exam and Mehrdad’s naive cheat time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There exists an island called Arpa’s原创 2017-10-30 08:31:14 · 347 阅读 · 0 评论 -
HDU1097 - A hard puzzle
D - A hard puzzle lcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT problem,so lcy makes the problem easier than begin.原创 2017-10-30 08:33:06 · 360 阅读 · 0 评论 -
HDU 1061 - Rightmost Digit
A - Rightmost Digit Given a positive integer N, you should output the most right digit of N^N. Input The input contains several test cases. The first line of the input is a single integer T which原创 2017-10-30 08:33:38 · 251 阅读 · 0 评论 -
HDU 1575 - Tr A
C - Tr A A为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input 数据的第一行是一个T,表示有T组数据。 每组数据的第一行有n(2 ,表示方阵A的内容。 Output 对应每组数据,输出Tr(A^k)%9973。 Sample Input 2 2 2 1 0 0 1 3 99999999 1 2 3原创 2017-10-30 08:34:18 · 283 阅读 · 0 评论 -
HDU 2157 How many ways
How many ways?? Problem Description 春天到了, HDU校园里开满了花, 姹紫嫣红, 非常美丽. 葱头是个爱花的人, 看着校花校草竞相开放, 漫步校园, 心情也变得舒畅. 为了多看看这迷人的校园, 葱头决定, 每次上课都走不同的路线去教室, 但是由于时间问题, 每次只能经过k个地方, 比方说, 这次葱头决定经过2个地方, 那他可以先去问鼎广场看看喷泉, 再去教原创 2017-10-30 08:37:13 · 270 阅读 · 0 评论 -
poj 3233 Matrix Power Series
H - Matrix Power Series Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. Input The input contains exactly one test case. The first line of input contains t原创 2017-10-30 08:42:01 · 238 阅读 · 0 评论