Bob’s Race Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=4123 Description Bob wants to hold a race to encoura ...
分类:
其他好文 时间:
2019-05-07 19:51:24
阅读次数:
146
Valera and Tubes time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Valera has got a rectang ...
分类:
其他好文 时间:
2019-05-06 18:52:04
阅读次数:
121
/* * 提取数字并去数据库取得相应的分类名 * $strs 需要处理的字符串 * $table 数据表名 * $condition 条件字段 * $field 获取的字段 */ public function extractNumberGetName($strs,$table,$condition... ...
分类:
数据库 时间:
2019-05-06 17:29:12
阅读次数:
133
while 循环是 Shell 脚本中最简单的一种循环,当条件满足时,while 重复地执行一组语句,当条件不满足时,就退出 while 循环。Shell while 循环的用法如下: while conditiondo statementsdone condition表示判断条件,statemen ...
分类:
系统相关 时间:
2019-05-04 00:27:26
阅读次数:
178
DML 操作是指对数据库中表记录的操作,主要包括表记录的插入(insert)、更新(update)、删除(delete)和查询(select),是开发人员日常使用最频繁的操作。 插入记录 表创建好后,就可以往里插入记录了,插入记录的基本语法如下 INSERT INTO tablename (fiel ...
分类:
其他好文 时间:
2019-05-02 15:40:10
阅读次数:
86
event 源文档解释 /** * @struct event * * Structure to represent a single event. * * An event can have some underlying condition it represents: a socket * b ...
分类:
其他好文 时间:
2019-05-01 12:02:18
阅读次数:
155
访问控制设定: 匹配后可进行那些操作: Use _backend : 当符合条件时使用特定的backend后端, Use_backend <backend> [{if | unless} <condition>] Block 阻塞 Block {if | unless} <condition> Ac ...
分类:
其他好文 时间:
2019-04-29 12:55:13
阅读次数:
152
Top NSD SERVICES DAY01 案例1:补充应用技巧 案例2:软连接与硬连接 案例3:man手册、zip备份 案例4:自定义yum软件仓库 案例5:发布及测试yum仓库 案例6:vim效率操作 案例7:编译安装软件包 案例8:使用systemctl工具 1 案例1:补充应用技巧 1.1 ...
分类:
其他好文 时间:
2019-04-28 12:51:28
阅读次数:
279
之前曾写过一个通过C++11的condition_variable实现的有最大缓存限制的队列,底层使用std::queue来实现,如果想要提升性能的话,可以考虑改用固定的长度环形数组。环形数组实现如下: 关于上面的环形数组,简单的单元测试代码如下,这里使用了catch2,如下代码需要放在.cpp文件 ...
分类:
编程语言 时间:
2019-04-27 00:27:09
阅读次数:
169