1. 短时压力测试工具 ab 命令(apache的工具)关键指标:Requests per second: 98.52 [#/sec] (mean) ###平均每秒的请求数Time per request: 30449.217 [ms] (mean) ###平均每个请求消耗的时间Ti...
分类:
其他好文 时间:
2015-10-29 18:09:08
阅读次数:
129
1100 - Again Array Queries PDF (English) Statistics Forum Time Limit: 3 second(s)Memory Limit: 32 MBGiven an array with n integers, and you are give.....
分类:
其他好文 时间:
2015-10-29 00:11:42
阅读次数:
243
在日常使用中常会有这样的操作,一个对象有多个属性,在排序时,我们会先比较一种属性,当这个属性相等时我们会对下一个属性进行比较。这个时候键值对”pair”就能够十分高效地使用: template struct pair { T1 first; T2 second;};当然,普通的使...
分类:
其他好文 时间:
2015-10-28 10:38:29
阅读次数:
280
常用宏infix宏解析人的四则运算书写格式并执行(defmacro infix
"Use this macro when you pine for the notation of your childhood"
[infixed]
(list (second infixed) (first infixed) (last infixed)))
这么用:(infix (1 + 1))
; ...
分类:
编程语言 时间:
2015-10-27 11:34:46
阅读次数:
314
## 压测命令 ab -c 100 -n 1000 www.baidu.com/? # 压测首页,注意别漏掉最后的斜线符 ab -c 100 -n 1000???www.baidu.co??m/index.html? # 压测某一页面 主要关注三个值: Requests per second?: ? ?q...
分类:
其他好文 时间:
2015-10-27 00:35:56
阅读次数:
184
1148 - Mad Counting PDF (English) Statistics Forum Time Limit: 0.5 second(s)Memory Limit: 32 MBMob was hijacked by the mayor of the Town "TruthTown".....
分类:
其他好文 时间:
2015-10-26 00:22:27
阅读次数:
231
LRIPTime Limit: 10000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu解题:树分治参考了Oyking大神的解法我们用map维护上升序列,first表示value,second表示长度,按first由小到大,second.....
分类:
其他好文 时间:
2015-10-25 00:57:53
阅读次数:
313
1005 - Rooks PDF (English) Statistics Forum Time Limit: 1 second(s)Memory Limit: 32 MBA rook is a piece used in the game of chess which is played on.....
分类:
其他好文 时间:
2015-10-24 21:56:49
阅读次数:
284
1148 - Mad Counting PDF (English) Statistics Forum Time Limit: 0.5 second(s)Memory Limit: 32 MBMob was hijacked by the mayor of the Town "TruthTown".....
分类:
其他好文 时间:
2015-10-24 21:38:54
阅读次数:
289
1,addSelf() First Paragraph Second Paragraph 注: list item 1 list item 2 list item 3 list item 4 list item 5 $("li.third-item").nextAll().andSel...
分类:
Web程序 时间:
2015-10-24 18:58:00
阅读次数:
235