poj 2886 Who Gets the Most Candies?
Description
N children are sitting in a circle to play a game.
The children are numbered from 1 to N in clockwise order. Each of them has a card with ...
分类:
其他好文 时间:
2014-12-30 23:42:05
阅读次数:
310
上一篇文章已经学习了如何通过vi编辑器中" :s "命令进行全局替换,而且可以在替换命令中使用正则表达式以进行强大的模式匹配。这一篇文章将学习模式匹配的更多范例,以进一步熟悉正则表达式。
模式匹配的范例:
(1)匹配一个完整的单词:如下图所示,如果需要将文本里所有的child单词替换成为children,可能最先想到的就是下图所示的替换命令:
但是这个命令会把childrendish,F...
分类:
系统相关 时间:
2014-12-30 22:07:22
阅读次数:
292
1.includes\lib_goods.php,在最末尾添加几个function/**
* 获得指定分类下的子分类
*
* @access public
* @param integer $cat_id 分类编号
* @return array
*/
function get_children_tree($cat_id)
{
if ($cat_id >0 )...
分类:
其他好文 时间:
2014-12-29 16:56:39
阅读次数:
223
Description Nchildren are sitting in a circle to play a game. The children are numbered from 1 toNin clockwise order. Each of them has a card with a.....
分类:
其他好文 时间:
2014-12-28 15:33:01
阅读次数:
291
Description
Children are used to playing with special cubes with letters written on thecubes' faces. The goal of the game is to compose words using such cubes. If youwant to compose the word "DOG",...
分类:
其他好文 时间:
2014-12-27 17:40:35
阅读次数:
297
首先,建立一个MySQL用户rick,密码设置为6452079,登录地点设置为本地登录localhost。
为rick用户创建一个数据库foo。
在数据库foo里创建一个表children。
表的结构如下:
添加3条简单的记录后,表为:
实验C 代码:
#include
#include
#include "mysql.h"
MYSQL my_connection...
分类:
数据库 时间:
2014-12-27 17:37:53
阅读次数:
218
题目:(Greedy)There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the foll...
分类:
其他好文 时间:
2014-12-26 06:10:48
阅读次数:
261
本文首发博客园:http://jscode.cnblogs.com,转载请注明出处。 关于Element跟Node的区别,cilldren跟childNodes的区别很多朋友弄不清楚,本文试图让大家明白这几个概念之间的区别。 Node(节点)是DOM层次结构中的任何类型的对象的通用名称,Node.....
分类:
编程语言 时间:
2014-12-25 01:21:33
阅读次数:
142
BT(binary tree), want to find the LIS(largest independent set) of the BT. LIS: if the current node is in the set, then its children should not be in t...
分类:
其他好文 时间:
2014-12-24 08:40:08
阅读次数:
120
最近在做学校的基础系统的时候前台需要树形的组织结构,由于前台的整体框架都用的是EasyUI,所以只能采用EasyUi中Tree的格式,可是麻烦的是,需要符合EasyUI中Tree的Json格式,我们先看一下,格式是如何的呢?
[{
"id":1,
"text":"My Documents",
"children":[{
"id":22,
"text":"Photos",
"st...
分类:
Web程序 时间:
2014-12-23 10:29:23
阅读次数:
279