You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2015-01-08 14:42:31
阅读次数:
160
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2015-01-08 13:14:25
阅读次数:
119
题目:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie,...
分类:
编程语言 时间:
2015-01-08 11:21:57
阅读次数:
239
这个题的m的数中居然有0啊,RE了好几次。。。。
初学容斥原理,这才知道还有奇加偶减这个东西,以前一直以为容斥原理不过是把重复的删掉就好了,。。
然后知道奇加偶减这个东西后,就可以深搜了,将所有组合情况全列出来,然后求lcm就好了。数的个数就是(n-1)/lcm,虽然我代码里写的是gcd。。不要在意这些细节。。。#include
#include
#include
#include
#...
分类:
其他好文 时间:
2015-01-08 11:18:55
阅读次数:
156
看到huoding.com上有比较好的帖子,于是理解并用自己的话来描述啦加大client_header_buffer_size和large_client_header_buffers可以解决问题,但是为毛要两个参数来控制呢?一个不久可以满足要求了么?client_header_buffer_size...
分类:
其他好文 时间:
2015-01-08 11:08:35
阅读次数:
3345
http://codeforces.com/problemset/problem/19/C
Once Bob saw a string. It contained so many different letters, that the letters were marked by numbers, but at the same time each letter ...
分类:
其他好文 时间:
2015-01-07 23:36:29
阅读次数:
221
If a project is in trouble, the project manager needs to work to recover it and get the schedule back on track. Hopefully, it's not too late to still ...
分类:
其他好文 时间:
2015-01-07 16:46:47
阅读次数:
135
Sleep状态通常代表资源未释放,如果是通过连接池,sleep状态应该恒定在一定数量范围内实战范例:因前端数据输出时(特别是输出到用户终端)未及时关闭数据库连接,导致因网络连接速度产生大量sleep连接,在网速出现异常时,数据库too many connections挂死。简单解读,数据查询和执行通...
分类:
其他好文 时间:
2015-01-07 16:46:18
阅读次数:
170
Though ZCC has many Fans, ZCC himself is a crazy Fan of a coder, called "Memset137".It was on Codefires(CF), an online competitive programming site, t...
分类:
其他好文 时间:
2015-01-07 16:35:55
阅读次数:
269
Question :I have a plant in which for many materials, I have assigned MRP Controller.Now I want to know that for only this MRP controller, can I set M...
分类:
其他好文 时间:
2015-01-07 14:48:51
阅读次数:
178