大意:给你一个字符串,字符串中的hehe可以换成wqnmlgb,问有几种换发?思路:1、由分析不难得出连续的he出现的时候f[n]=f[n-1]+f[n-2]。2、扫描字符串,利用上面算出的f[n]对字符串中出现的hehe进行计算即可3、各个不连续的hehe串的f[]乘起来就得到了。代码:#incl...
分类:
其他好文 时间:
2014-08-04 13:27:47
阅读次数:
232
参考文献:Learning Multiple Layers of Features from Tiny Images:附录
设数据集 X 的维数为 d×n ,且已经中心化
则协方差矩阵为
1/(n-1)*X*X'
我们想让这n个d维向量中任意两维都不相关,则假定去相关矩阵为W
Y = W*X
为了使W达到去相关的目的,Y*Y‘必须是对角阵,可以进一步约束Y满足
Y * Y’ = (n...
分类:
其他好文 时间:
2014-08-04 11:06:27
阅读次数:
403
Rescue
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M
Angel's friends want to s...
分类:
其他好文 时间:
2014-08-04 10:59:57
阅读次数:
237
一 Words 1 ought to 应该v 2 occupation 职业n,占用v eg. He is a teacher by occupation but a philosopher by inclination倾向,爱好.他的职业是教师,但他的本心是成为哲学家。 3 job satisfa...
分类:
其他好文 时间:
2014-08-04 08:17:06
阅读次数:
324
The areaTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIgnatius bought a land last week, but he didn't know ...
分类:
其他好文 时间:
2014-08-04 01:46:56
阅读次数:
231
题目连接:Sherlock and MiniMaxWatson gives Sherlock an arrayA1,A2...AN.He asks him to find an integerMbetweenPandQ(both inclusive), such that,min {|Ai-M|, ...
分类:
其他好文 时间:
2014-08-03 23:04:06
阅读次数:
380
Description
LogLoader, Inc. is a company specialized in providing products for analyzing logs. While Ikki is working on graduation design, he is also engaged in an internship at LogLoader. Among ...
分类:
其他好文 时间:
2014-08-03 20:37:35
阅读次数:
275
Conscription
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7702
Accepted: 2667
Description
Windy has a country, and he wants to build an army to protect ...
分类:
其他好文 时间:
2014-08-03 18:10:35
阅读次数:
354
题目链接:uva 11256 - Repetitive
Multiple
题目大意:给定一个数n,要求找到最小的k,使得k?n为题目中定义的重复数字.
解题思路:枚举k?n的循环节长度,比如当前枚举为2,那么一次判断u=1001,1001001,1001001001
...,取d = gcd(n,u), 那么k = u / d, a = n / d (因为n?k=u?a)并且保...
分类:
其他好文 时间:
2014-08-03 12:54:35
阅读次数:
211
Problem Description
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze was changed and the way he came in was lost.He realized that the bo...
分类:
其他好文 时间:
2014-08-02 23:31:54
阅读次数:
274