Language:
Default
Bridging signals
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 10762
Accepted: 5899
Description
'Oh no, they've done it again', cri...
分类:
其他好文 时间:
2014-10-19 17:12:02
阅读次数:
162
October 16, 2014 19:00~21:00 Feishang Cafe
As a guest I came here once again. I was glad to meet Neo, Nicole, Rubio, Susan, and so on. They are the members of TMC Jinan, and they ar...
分类:
其他好文 时间:
2014-10-17 15:41:57
阅读次数:
140
题目:hdoj 4786 Fibonacci Tree
题意:给出 n 个点 m 条边的图,边只有两种颜色,白色和黑色,让你判断能不能让一个生成树中白边的个数为斐波那契数。
分析:这是个想法题目,前提是知道生成树的定义:生成树必须是所有点都在树中
那么既然要是斐波那契数,我只要把白色边的最大个数和最小个数求出来,如果这个范围内有斐波那契数的话,那么就满足条件。
当然...
分类:
其他好文 时间:
2014-10-17 00:52:13
阅读次数:
188
每天一个JavaScript实例-使用缓存计算(memoization)来提高应用程序性能
window.onload = function(){
var fibonacci = function(){
var memo = [0,1];
var fib = function(n){
var result = memo[n];
if(typeof resu...
分类:
编程语言 时间:
2014-10-16 12:06:52
阅读次数:
182
# Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3...
分类:
编程语言 时间:
2014-10-15 23:13:51
阅读次数:
245
We were unable to copy your files. Please check your USB device and the selected ISO file and try again.Windows 7 USB/DVD Download Tool (WUDT) is unab...
题目:hdoj 3376 Matrix Again
题意:给出一个m*n的矩阵,然后从左上角到右下角走两次,每次只能向右或者向下,出了末尾点其他只能走一次,不能交叉,每次走到一个格子拿走这个格子中的数字,求价值最大?
分析:很明显费用流,开始想的到一种建图方案,但是那样的话流量全为负值的话会成一个环,所以果断换了。
建图方案是:
首先拆点,每个点拆成两个i 和 ii ,建边...
分类:
其他好文 时间:
2014-10-15 18:56:11
阅读次数:
244
1.小兔子繁殖问题 (有该问题的详细来由介绍)2.台阶问题题目:一个人上台阶可以一次上一个或者两个,问这个人上n层的台阶,一共有多少种走法。递归的思路设计模型:i(台阶阶数) n(走法种数) 组合情况1 1 ...
分类:
其他好文 时间:
2014-10-15 13:33:10
阅读次数:
167
Implicitly Typed Local VariablesIt happens time and time again: I’ll be at a game jam, mentoring students, or just showing a friend some Unity C# code...
分类:
其他好文 时间:
2014-10-14 22:29:09
阅读次数:
180
题解:直接计算即可。#include #include using namespace std;int main(){ int T; scanf("%d",&T); while(T--){ int a,b,c; bool flag=1; scanf("%...
分类:
其他好文 时间:
2014-10-14 17:37:59
阅读次数:
119