码迷,mamicode.com
首页 >  
搜索关键字:times    ( 2480个结果
A Simple MVC Framework With Node and Express
I love frameworks. As soon as I dropped my programmer’s ego and learned to embrace well conceived conventions over configuration my development and deployment times felt the benefit. On the other...
分类:Web程序   时间:2014-10-11 23:13:17    阅读次数:422
[家里蹲大学数学杂志]第317期厦门大学2010年综合基础I考研试题参考解答
数学分析部分 ($110'$) 1. 选择题 ($5\times 6'=30'$) (1) 设函数 $f(x)$ 二阶可导, 并且满足方程 $$\bex f''(x)+3[f'(x)]^2+2e^x f(x)=0, \eex$$ 设 $x_0$ 为 $f(x)$ 的...
分类:其他好文   时间:2014-10-09 22:00:48    阅读次数:257
提取最近一小时的访问次数
times=`tail-1/Data/logs/nginx/access.log|awk‘{print$4}‘`m_time=`echo${times}|awk-F:‘{print$2}‘`foriin010203040506070809;doif[$i-eq${m_time}];thenm_time=`echo${m_time#0}`fidoneif[${m_time}="00"];thens_time="23"elselet"s_time=${m_time}-1"num=`exprlength${s_ti..
分类:其他好文   时间:2014-10-09 19:08:58    阅读次数:221
Light OJ 1341 Aladdin and the Flying Carpet Pollard_rho整数分解+DFS
输入a b 求有多少对p, q 使得p*q == a && p = b 直接大整数分解 然后dfs搜出所有可能的解 #include #include #include #include #include using namespace std; typedef long long LL; const int Times = 25; LL factor[100], f[100]; i...
分类:其他好文   时间:2014-10-09 16:07:38    阅读次数:179
Leetcode - Single Number II
The key is to use two constant space(32 bits) to store how many times 1 or 0 showed up in the bit i. If times of 1 in bit i is not the multiple of 3, then the unique value's bit i is 1. Otherwise the ...
分类:其他好文   时间:2014-10-09 15:29:08    阅读次数:243
042_翻转单词顺序
/* * Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-10-04 17:45:36    阅读次数:163
leetcode Single Number II
/* * Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-10-04 14:32:16    阅读次数:211
平面分拆的 Macmahon 公式
首先看一个计数问题:一个边长为 $a\times b\times c$ 的平行六边形,每个内角都是 120 度。用边长为 1 的菱形去覆盖,有多少种不同的方法?比如下图就是一种:我们从上方俯视这张图(虽然这是一个平面图形,但是我们想象在空间中鸟瞰它),发现它很像是在墙角堆箱子:在一个边长为 $a\t...
分类:其他好文   时间:2014-10-02 23:55:23    阅读次数:410
HDU 3635 Dragon Balls(带权并查集)
题目地址:HDU 3635 加权并查集水题。 用num数组维护该城市有多少龙珠,用times数组维护每个龙珠运输了多少次。num数组在合并的时候维护。times数组由于每个都不一样,所以要在找根的时候递归来全部维护。 最终,x龙珠所在的城市就是x节点所在的根,x结点所在的跟的num数组值是该城市的龙珠数。times[x]为该龙珠运输了多少次。 代码如下: #include #inclu...
分类:其他好文   时间:2014-10-02 21:18:33    阅读次数:183
poj 3734 Blocks
从左边开始染色,到第$i$个方块为止,红绿都是偶数的方案数为$a_i$,红绿恰有一个是偶数的方案为$b_i$,红绿都是奇数的方案为$c_i$,从而有如下状态转移方程:$a_{i+1} = 2 \times a_i + b_i$$b_{i+1} = 2 \times a_i + 2 \times b_...
分类:其他好文   时间:2014-09-29 22:34:11    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!