题目链接:点击打开链接
题意:
给定2个字符串
选择第一个字符串的其中一个字母删除,使得2个字符串完全相同
问哪些位置可以选
思路:
hash求前缀后缀,然后枚举位置
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
...
分类:
其他好文 时间:
2014-07-18 22:27:50
阅读次数:
210
SQL Server中有五种约束类型,分别是 PRIMARY KEY约束、FOREIGN KEY约束、UNIQUE约束、DEFAULT约束、和CHECK约束。查看或者创建约束都要使用到 Microsoft SQL Server Managment Studio。
1. PRIMARY KEY约束
在表中常有一列或多列的组合,其值能唯一标识表中的每一行。这样的一列或多列成为表的主键(Primar...
分类:
数据库 时间:
2014-07-18 17:03:18
阅读次数:
359
SQL中有多种多样的函数,下面将为您介绍SQL中的ISNULL函数,包括其语法、注释、返回类型等,供您参考,希望对您学习SQL能够有所帮助。ISNULL使用指定的替换值替换 NULL。语法ISNULL ( check_expression , replacement_value )参数check_e...
分类:
数据库 时间:
2014-07-18 16:24:22
阅读次数:
205
#include
#include "sys.h"
//设置向量表偏移地址
//NVIC_VectTab:基址
//Offset:偏移量
//CHECK OK
//091207
void MY_NVIC_SetVectorTable(u32 NVIC_VectTab, u32 Offset)
{
//检查参数合法性
assert_param(IS_NVIC_...
分类:
其他好文 时间:
2014-07-18 12:30:58
阅读次数:
338
刚刚开始想到一种很暴力但还行的方法,不过在和TK讨论的过程中引出了一个更好的算法#include#include#include#includeusing namespace std;long long n,m,k;long long check(long long x){ long long...
分类:
其他好文 时间:
2014-07-18 12:17:25
阅读次数:
221
时间限制:0.25s空间限制:4M题意 你的任务是找到最小自然数 N, 使N!在十进制下包含 Q个零. 众所周知 N! = 1*2*...*N. 例如, 5! = 120, 120 结尾包含1个零.Input 一个数 Q (0using namespace std;int check ...
分类:
其他好文 时间:
2014-07-18 00:10:28
阅读次数:
263
一、下载pip并安装
# wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-1.4.tar.gz#md5=ca790be30004937987767eac42cfa44a
# tar -zxf pip-1.4.tar.gz
# cd pip-1.4
# python setup....
分类:
编程语言 时间:
2014-07-17 19:32:09
阅读次数:
271
问题
方法的思想
The idea is to check elements in a way that’s reminiscent of movements of a caterpillar.
The caterpillar crawls through the array. We remember the front and back positions of the
caterp...
分类:
其他好文 时间:
2014-07-17 19:22:33
阅读次数:
322
Spell checker
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 18693
Accepted: 6844
Description
You, as a member of a development team for a new spell check...
分类:
其他好文 时间:
2014-07-17 19:22:06
阅读次数:
246
在客户端上配置nrpe监控keepalived进程[root@localhost~]#vim/usr/local/nagios/etc/nrpe.cfgcommand[check_keepalived]=/usr/local/nagios/libexec/check_procs-w2:-c:4-Ckeepalived#command[check_keepalived]=/usr/local/nagios/libexec/check_procs-c3:3-Ckeepalived注释:..
分类:
移动开发 时间:
2014-07-17 08:07:52
阅读次数:
274