其实矩阵构造就是对公式的化简,最后运用矩阵快速幂求值下面来看一题Everybody knows Fibonacci numbers, now we are talking about the Tribonacci numbers: T[0] = T[1] = T[2] = 1; T[n] = T[n...
分类:
其他好文 时间:
2015-04-04 10:36:09
阅读次数:
178
Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.
Bob has...
分类:
其他好文 时间:
2015-03-31 12:52:29
阅读次数:
129
FliptileTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 4031Accepted: 1539DescriptionFarmer John knows that an intellectually satisfied cow i...
分类:
其他好文 时间:
2015-03-29 23:39:51
阅读次数:
150
Problem Description
In order to get rid of Conan, Kaitou KID disguises himself as a teacher in the kindergarten. He knows kids love games and works out a new game called "hand in hand".
Initiall...
分类:
其他好文 时间:
2015-03-19 23:59:41
阅读次数:
435
D - Fliptile
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit Status Practice POJ 3279
Description
Farmer John knows that an intellectually satisfied cow is a happy ...
分类:
其他好文 时间:
2015-03-19 22:04:33
阅读次数:
141
Problem Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.Bob has...
分类:
其他好文 时间:
2015-03-16 19:22:16
阅读次数:
102
Problem Description
As one of the most powerful brushes, zhx submits a lot of code on many oj and most of them got AC.
One day, zhx wants to count how many submissions he made on
n
ojs. He knows...
分类:
其他好文 时间:
2015-03-15 09:27:34
阅读次数:
133
3.1.3. ListsPython knows a number of compound data types, used to group together other values. The most versatile is the list, which can be written as...
分类:
编程语言 时间:
2015-03-14 01:00:17
阅读次数:
234
ChessAlmost everyone knows the problem of putting eight queens on anchessboard such that no Queen can take another Queen. Jan Timman (a famous Dutch c...
分类:
其他好文 时间:
2015-03-09 22:05:32
阅读次数:
231
1924. Four Imps
Time limit: 1.0 second
Memory limit: 64 MB
The world is in danger. One famous swindler passed away recently (by the way, nobody knows his real name, so let's call him Osta...
分类:
其他好文 时间:
2015-03-06 19:09:08
阅读次数:
178