题意:给你两字符串s1,s2,用最短的字符串表示他们(公共字串输出一次)。
Sample Input
apple peach
ananas banana
pear peach
Sample Output
appleach
bananas
pearch
dp[i][j] : 第一个字符串的前 i 个 ,和第二个字符串的前 j 个最...
分类:
其他好文 时间:
2014-08-11 21:24:02
阅读次数:
264
使用Java上传文件 从Apache Software Foundation下载HttpClient 4.3.4。 在工程中添加下面的jar包: 参考sample,写一个简单的上传: public?static?void?main(String[]?args)?throws?Exception?{
????...
分类:
移动开发 时间:
2014-08-11 15:26:54
阅读次数:
455
f (0) = 0 and f (1) = 1f (i+2) = f (i+1) + f (i) for every i ≥ 0
Sample input
three integers a,b,n where
0 ≤ a,b 64 (a and b will
not both be zero) and 1 ≤ n ≤ 1000.
T
a b n
...
分类:
其他好文 时间:
2014-08-11 12:02:42
阅读次数:
220
How to choose q() to sample theta? Usally gausian, for the parameter u and sigma, we can get from cross validation.Importance sampling can only work o...
分类:
其他好文 时间:
2014-08-11 11:47:22
阅读次数:
171
Matlab 图像处理 Day9:
1、permute( ):
% permute 函数功能是重新排列数组,可以交换数组的维数
% 对于二维数组而言、可以利用 permute 函数对矩阵进行转置
Sample:
...
分类:
其他好文 时间:
2014-08-10 15:44:50
阅读次数:
226
Aspectj切入点语法定义在使用spring框架配置AOP的时候,不管是通过XML配置文件还是注解的方式都需要定义pointcut"切入点"例如定义切入点表达式 execution (* com.sample.service.impl..*.*(..))execution()是最常用的切点函数,其...
分类:
编程语言 时间:
2014-08-10 15:40:30
阅读次数:
264
第一部分 normalize.css 104至110行 code,????/*?编辑代码?*/
kbd,????/*?键盘输入的文本?*/
pre,
samp?{????/*?范例,sample的简写?*/
??font-family:?monospace,?monospace;????/*?...
分类:
其他好文 时间:
2014-08-09 23:25:29
阅读次数:
437
f (0) = 0 and f (1) = 1f (i+2) = f (i+1) + f (i) for every i ≥ 0
Sample input
three integers a,b,n where 0 ≤ a,b 64 (a and b will
not both be zero) and 1 ≤ n ≤ 1000.
T
a b n
3...
分类:
其他好文 时间:
2014-08-08 12:47:05
阅读次数:
256
/*首字母变大写
Input
输入数据包含多个测试实例,每个测试实例是一个长度不超过100的英文句子,占一行。
Output
请输出按照要求改写后的英文句子。
Sample Input
i like acm
i want to get an accepted
Sample Output
I Like Acm
I Want To Get An Accepted
...
分类:
其他好文 时间:
2014-08-08 09:42:02
阅读次数:
201
Problem Description输入一个英文句子,将每个单词的第一个字母改成大写字母。Input输入数据包含多个测试实例,每个测试实例是一个长度不超过100的英文句子,占一行。Output请输出按照要求改写后的英文句子。Sample Inputi like acmi want to get a...
分类:
其他好文 时间:
2014-08-07 18:38:20
阅读次数:
199