经典kmp 1 #include 2 #include 3 using namespace std; 4 5 int n,m; 6 int a[1000010],b[10010],next[10010]; 7 8 void getnext (int *s,int *next)...
分类:
其他好文 时间:
2014-07-22 22:52:33
阅读次数:
182
感言:以后中国高中生的专场还是慎入!!!!
A题目还是比较简单
AC代码:
#include
#include
using namespace std;
struct p
{
int number;
int val;
}num[105];
bool cmp(p x,p y)
{
if(x.val==y.val)
return x.number>...
分类:
其他好文 时间:
2014-07-22 22:49:34
阅读次数:
186
There are n children in Jzzhu's school. Jzzhu is going to give some candies to them. Let's number all the children from 1 to n.
The i-th child wants to get at least ai candies.
Jzzhu asks childre...
分类:
其他好文 时间:
2014-07-22 22:49:13
阅读次数:
237
题目描述: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is...
分类:
其他好文 时间:
2014-07-22 22:48:53
阅读次数:
207
oracle方法 CREATE?OR?REPLACE?FUNCTION?IpToLong(ip?in?varchar2)
return?number?is??
p1?number;?
p2?number;?
p3?number;
??begin??
????p1?:=?instr(ip,?‘.‘,?1,?1);??
???...
分类:
其他好文 时间:
2014-07-22 08:13:37
阅读次数:
203
题目如下: Counting Subsequences Time Limit: 5000 MSMemory Limit: 65536 K Description ?"47 is the quintessential random number," states the 47 society. And there might be a grain of truth in that....
分类:
其他好文 时间:
2014-07-22 08:13:34
阅读次数:
281
1、拷贝cms公钥到managed上,cms依赖免秘钥的root执行环境 #非默认端口,你懂的 ssh-copy-id -i ~/.ssh/id_rsa.pub "-p port_number root@192.168.201.74" 2、managed上存放iso目录,拷贝镜像存放到该目录 #目录位...
分类:
其他好文 时间:
2014-07-21 10:17:27
阅读次数:
341
DescriptionThere is a number of disjoint vertical line segments in the plane. We say that two segments are horizontally visible if they can be connect...
分类:
其他好文 时间:
2014-07-20 09:27:15
阅读次数:
351
---------------loop循环定义变量--------------------declare cursor c1 is select * from emp;# rec emp%rowtype;# i numeber:=1; # v_count number;begin# select count(*) into v_count from emp;#(1) open c1; loop...
分类:
数据库 时间:
2014-07-20 00:33:20
阅读次数:
334
1) !!:重复执行上一条指令2) !a:重复执行上一条以a为首的指令3) !number:重复执行上一条在history表中记录号码为number的指令4) !-number:重复执行前第number条指令5) !$:表示获得上一条命令中的最后一项内容6) 用Ctrl + r 组合键来进入历史搜索...
分类:
其他好文 时间:
2014-07-19 22:20:52
阅读次数:
262