/* See LCS again时间限制:1000 ms | 内存限制:65535 KB难度:3描述 There are A, B two sequences, the number of elements in the sequence is n、m; Each element in the se ...
分类:
编程语言 时间:
2017-08-25 21:42:54
阅读次数:
427
2017-08-25 17:04:07 writer:pprp 题目描述: ? Codeforces 35C Fire Again? N*M的格子,最开始有K个点 (坐标给定) 开始着火? 每一秒着火的点会扩散到与其距离为1的其他点? 求最后一个着火的点? 1 ≤ n, m ≤ 2000? 1 ≤ ...
分类:
其他好文 时间:
2017-08-25 17:44:41
阅读次数:
127
dp动态规划分类详解 转自:http://blog.csdn.NET/cc_again/article/details/25866971 动态规划一直是ACM竞赛中的重点,同时又是难点,因为该算法时间效率高,代码量少,多元性强,主要考察思维能力、建模抽象能力、灵活度。 *************** ...
分类:
其他好文 时间:
2017-08-24 10:43:24
阅读次数:
200
1. Remember to add it again after counting since there are still remaining information in cache. ...
分类:
其他好文 时间:
2017-08-23 14:52:16
阅读次数:
163
Given a staircase and give you can take 1 or 2 steps at a time, how many ways you can reach nth step. Same problem link. Climbing Stairs ...
分类:
其他好文 时间:
2017-08-22 13:12:47
阅读次数:
127
There are no regrets in life, just lessons. 人生中没有后悔,只有教训。 Some people can learn from their past mistakes and never make the same mistake again. But so ...
分类:
其他好文 时间:
2017-08-22 10:40:28
阅读次数:
178
总时间限制:1000ms内存限制:65536kB描述BackgroundThe knight is getting bored of seeing the same black and white squares again and again and has decided to make a j... ...
分类:
其他好文 时间:
2017-08-22 10:34:18
阅读次数:
255
开始第二遍复习数据结构,决定把一些有意思的题目做个简单的小结,第一个遇见的是这个经典的Fibonacci数列,题目要求是求这个数列的时间复杂度,对于这个数列,我也不作过多的介绍,下面是对数列的几种简单的实现 1.初始版 这种写法是每一个初学者第一次接触到递归时都会写的,这是最为简单的写法,但也是递归 ...
分类:
其他好文 时间:
2017-08-22 00:14:30
阅读次数:
189
突然对那些有趣的数学类知识感兴趣了,然后就简单研究了一下斐波拉契数列,看看它的有趣之处! 斐波拉契数列(Fibonacci Sequence),又称黄金分割数列,该数列由意大利的数学家列奥纳多·斐波那契发现的。这种数列指的是这样一个数列:0、1、1、2、3、5、8、13、21、 34、……在数学上, ...
A + B for you again Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7687 Accepted Submission(s): ...
分类:
其他好文 时间:
2017-08-19 21:13:17
阅读次数:
132