解题思路:
判断给出的单词是否恰好由另外两个单词组成,用栈保存每个子字符串的节点,从这个节点出发判断剩下的字符串是否在字典树中即可。
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 500...
分类:
其他好文 时间:
2015-02-11 18:41:50
阅读次数:
158
我们的男主现在手中有n*c张牌,其中有c(#define eps 1e-9#define FOR(i,j,k) for(int i=j;i=dp[num]) { dp[++num]=p[i].hash; }else ...
分类:
其他好文 时间:
2015-02-11 12:37:29
阅读次数:
160
http://product.dangdang.com/23577811.html
第1章 必须掌握的Linux基础
1.1 认识Linux
1.1.1 Windows与Linux的区别
1.1.2 UNIX与Linux的区别
1.2 GNU公共许可证
1.3 Linux的内核版本
1.4 Linux的发行版本
1.5 认识Red Hat Enterprise Li...
分类:
系统相关 时间:
2015-02-10 18:44:13
阅读次数:
231
SortingalgorithmSelection sortThis method is called selection sort because it works by repeatedly selecting the smallest remaining item。Selection sort...
分类:
其他好文 时间:
2015-02-09 22:46:57
阅读次数:
286
This webpage covers the space and time Big-O complexities of sorting algorithms used in Computer Science.Follow: sorting of big O实用的算法可视化工具:WIn32 Linu...
分类:
其他好文 时间:
2015-02-09 18:14:07
阅读次数:
164
1028. List Sorting (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueExcel can sort records according to any column. Now you are supposed ...
分类:
其他好文 时间:
2015-02-09 00:41:28
阅读次数:
192
Insertion sortis a simplesorting algorithmthat builds the finalsorted array(or list) one item at a time. It is much less efficient on large lists than...
分类:
其他好文 时间:
2015-02-08 12:50:38
阅读次数:
195
1. download rpm包
先确定系统版本
[root@xcldtc5m /]# cat /proc/version
Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP F...
分类:
数据库 时间:
2015-02-07 11:44:12
阅读次数:
254
正式环境:
系统:Red Hat Enterprise Linux Server release 5.6 (Tikanga)
内核:2.6.18-238.31.1.el5
位数:64
测试环境:
系统:CentOS release 5.8 (Final)
内核:2.6.18-53.el5
位数: 32
相关软件版本及下载地址
1.apr: http://labs.mop.co...
分类:
Web程序 时间:
2015-02-06 16:43:03
阅读次数:
169