Given two sequences of letters A and B, find if B is a subsequence of A in thesense that one can delete some letters from A and obtain the sequence B. ...
分类:
其他好文 时间:
2017-04-22 15:51:30
阅读次数:
269
生活中我们常常听到人们说“不要把鸡蛋放到一个篮子里”,这样能够减少风险。深究一下,这是为什么呢?事实上。这里边包括了所谓的最大熵原理(The Maximum Entropy Principle)。本文为一则读书笔记,将对最大熵原理以及由此导出的最大熵模型进行介绍,重点给出当中所涉及数学公式的理解和具 ...
分类:
其他好文 时间:
2017-04-22 12:40:08
阅读次数:
204
http://codeforces.com/problemset/problem/762/D 因为是3*n很巧妙的地方是 往左走两步或更多的走法都可以用往回走以一步 并走完一列来替换 那么走的方法就大大减少 左边一列转移到右边一列 每个 格子的转移方法枚举出来 用动态规划即可解决 最主要的是因为他能 ...
分类:
其他好文 时间:
2017-04-21 23:02:38
阅读次数:
185
题意:求最长递增子序列 AC代码:#include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int dp[1010],a[1010]; int main() { int i,j,n; scanf("%d ...
分类:
其他好文 时间:
2017-04-21 21:31:08
阅读次数:
135
题目链接:http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1553 Description Give you a sequence of n numbers, and a number k you should find the max leng ...
分类:
其他好文 时间:
2017-04-21 20:22:52
阅读次数:
238
题目: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / ...
分类:
编程语言 时间:
2017-04-21 20:20:50
阅读次数:
178
手机网页怎么禁止缩放和拖动 禁止缩放 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />user-scal ...
分类:
移动开发 时间:
2017-04-21 19:21:55
阅读次数:
211
区别于pc端开发,移动端开发需要在head中加入下面这行代码 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=n ...
分类:
移动开发 时间:
2017-04-21 19:20:39
阅读次数:
220
1、使用rem 2、meta内容如下: <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scal ...
分类:
移动开发 时间:
2017-04-21 19:03:15
阅读次数:
197
传送门 Description Leonid wants to become a glass carver (the person who creates beautiful artworks by cutting the glass). He already has a rectangular w ...
分类:
其他好文 时间:
2017-04-21 00:12:53
阅读次数:
286