摘要: 推荐博客 : https://blog.csdn.net/flushhip/article/details/80068888 百度文库 : https://wenku.baidu.com/view/dd6e9d00a58da0116d17491e.html 矩阵10大经典问题:http://www. 阅读全文
posted @ 2018-04-30 16:16 楼主好菜啊 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/105/G来源:牛客网 题目描述 这是一个加强版的斐波那契数列。 给定递推式 求F(n)的值,由于这个值可能太大,请对109+7取模。 输入描述: 第一行是一个整数T(1 ≤ T ≤ 1000),表示样例的个数。以后每个 阅读全文
posted @ 2018-04-30 15:45 楼主好菜啊 阅读(162) 评论(0) 推荐(0) 编辑
摘要: In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n ≥ 2. For example, the first ten terms of the Fibonacci sequence are: 阅读全文
posted @ 2018-04-30 10:57 楼主好菜啊 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 权值线段树,每个叶子结点都视为点的权值,在进行操作时要离散 您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作: 1. 插入x数 2. 删除x数(若有多个相同的数,因只删除一个) 3. 查询x数的排名(若有多个相同的数,因输出最小的排名) 4. 查询排名为x的数 5. 求x的 阅读全文
posted @ 2018-04-30 07:27 楼主好菜啊 阅读(745) 评论(0) 推荐(1) 编辑