Problem Description
The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb counts from 1 to N. If the curren...
分类:
其他好文 时间:
2015-03-06 19:15:02
阅读次数:
145
Nginx main函数初探
C程序一般来说都会有主函数,通常意义上主函数定义为main,Nginx也是如此。下面是Nginx中函数一级调用的框架,更详细的级联调用将在以后给出。
main()
-->ngx_debug_init()
-->ngx_strerror_init()
-->ngx_get_options
-->ngx_time_init()
-->ngx_reg...
分类:
其他好文 时间:
2015-03-06 19:14:37
阅读次数:
160
Queuing
Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice HDU
2604
Appoint description:
devtang (2012-08-01)System Crawler (2015-03-02)...
分类:
其他好文 时间:
2015-03-06 19:14:30
阅读次数:
119
1.题目You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?2.解决方案class Solution {
public:
...
分类:
其他好文 时间:
2015-03-06 19:11:17
阅读次数:
113
#include
#include
#include
int main()
{
int a,b,c,t;
srand((int )time(0));
a=rand();
b=rand();
c=rand();
printf("%d%d%d",a,b,c);
return 0;
}...
分类:
其他好文 时间:
2015-03-06 19:10:29
阅读次数:
125
1924. Four Imps
Time limit: 1.0 second
Memory limit: 64 MB
The world is in danger. One famous swindler passed away recently (by the way, nobody knows his real name, so let's call him Osta...
分类:
其他好文 时间:
2015-03-06 19:09:08
阅读次数:
178
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2015-03-06 18:53:01
阅读次数:
107
今天上课时老师布置我们计算随机数的四则运算,在二十分鈡的时间里我无法完成,在寒假里玩的太多了,知识都忘得差不多了,在这里我先用time函数,确保随机数生成的不会相同,为了让随机数都是两位数,我用了rand%90+10,使生成的都是两位数,用rand%5随机生成加减乘除,下面是源代码:#include...
分类:
其他好文 时间:
2015-03-06 18:28:07
阅读次数:
134
由于要用到时间模块,为了下次不用去翻文档,这里也简单记录一下:直接一个脚本看输出:importtime
printtime.time()
printtime.localtime(time.time())
printtime.strftime(‘%Y-%m-%d‘,time.localtime())
printtime.strftime(‘%y-%m-%d‘,time.localtime())
printtime.strftime(‘..
分类:
编程语言 时间:
2015-03-06 17:18:32
阅读次数:
167
Xor Sum
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 132768/132768 K (Java/Others)
Total Submission(s): 457 Accepted Submission(s): 231
Problem Description
Zeus 和 Prometheus 做了...
分类:
其他好文 时间:
2015-03-06 17:06:19
阅读次数:
175