题目:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the corre...
分类:
其他好文 时间:
2014-07-09 21:12:58
阅读次数:
221
看下面的英文解释:const char* c_str ( ) const;Get C string equivalentGenerates a null-terminated sequence of characters (c-string) with the same content as the...
分类:
编程语言 时间:
2014-07-09 20:40:50
阅读次数:
345
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2014-07-09 00:53:55
阅读次数:
277
http://poj.org/problem?id=4044
大致题意:给出两个班级的成绩,先按降序排序,并且没有成绩相同的。然后求连续的最长公共子序列。输出时,先输出最长公共子序列,然后按个位数字递增的顺序输出,若各位数字一样就按成绩递增。
人数小于30,注意去重,直接暴力即可。
#include
#include
#include
#include
#in...
分类:
其他好文 时间:
2014-07-08 20:59:44
阅读次数:
228
欧拉通路+并查集+字典树
题意是说 木棍两头有颜色,怎么排让它连成一串。颜色相同可以接起来。
最开始想用map水过去,一直TLE。怒点字典树天赋……花了一上午。
字典树不多介绍,我的节点开小了,CE好几次,才想起
“There is no more than 250000 sticks.”
“A word is a sequence of lowercas...
分类:
其他好文 时间:
2014-07-08 17:22:26
阅读次数:
180
1、自动增长identity适用于MySQL、DB2、MS SQL Server,采用数据库生成的主键,用于为long、short、int类型生成唯一标识 使用SQL Server 和 MySQL 的自增字段,这个方法不能放到 Oracle 中,Oracle 不支持自增字段,要设定sequence(...
分类:
系统相关 时间:
2014-07-06 17:52:23
阅读次数:
266
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2014-07-06 16:06:45
阅读次数:
198
一、时序图简介(Brief introduction) 二、时序图元素(Sequence Diagram Elements)角色(Actor)对象(Object)生命线(Lifeline)控制焦点(Focus of Control)消息(Message)自关联消息(Self-Message)Com....
分类:
其他好文 时间:
2014-07-06 13:38:54
阅读次数:
254
/****************************************************************** find the biggest x number in a sequence* the basic method is the same as the Quic....
分类:
其他好文 时间:
2014-07-06 13:12:01
阅读次数:
176
今天在闲暇时间练习了一下oracle任务计划,具体详情如下1.创建表TBL_TIMEcreatetabletbl_time(
idnumbernotnull,/*id号*/
vsecondvarchar2(2),/*秒*/
vtimevarchar2(10)/*当前时间*/
)2.创建序列seq_tbltimecreatesequenceseq_tbltime
startwith1
incrementby1
nomaxval..
分类:
数据库 时间:
2014-07-04 06:03:32
阅读次数:
386