Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Idea 1. Dynamic pr ...
分类:
其他好文 时间:
2019-05-09 10:46:05
阅读次数:
99
pmxcfs The Proxmox Cluster file system (“pmxcfs”) is a database-driven file system for storing configuration files, replicated in real time to all clu ...
分类:
其他好文 时间:
2019-05-08 16:02:38
阅读次数:
303
meta篇 1.视窗宽度 其中 width=device-width 是设置视窗宽度为设备视窗宽度,还可以固定宽度,例如: width=640 则是640px的宽度(常见于微信); initial-scale=1.0 :设置缩放比例为1.0; minimum-scale=1.0 和 maximum- ...
分类:
移动开发 时间:
2019-05-08 09:35:57
阅读次数:
158
移动布局: 1,移动设备 手机和ipad 安卓系统iOS系统 安卓系统 内置浏览器是谷歌,iOS内置safari浏览器,他们的内核都是webkit,不考虑兼容性,需要考虑的是安卓和iOS的区别 2,布局 设备宽度···设备的实际大小,设备的分辨率···厂家给的 页面的大小···设计稿上的大小 浏览器 ...
分类:
移动开发 时间:
2019-05-07 21:15:32
阅读次数:
166
Vasya and Maximum Matching 首先能观察出, 只有完美匹配的情况下方案数唯一。 dp[ i ][ 0 ], dp[ i ][ 1 ], dp[ i ][ 2 ] 分别表示 对于 i 这棵子树 0: 不向上连边完成 1:向上连边完成 2:向上连边未完成 的方案数 ...
分类:
其他好文 时间:
2019-05-06 17:32:46
阅读次数:
144
思路 观察到答案一定是连续的一段下凸函数或者上凸函数 直接模拟找出即可 时间复杂度为$O(n)$ 代码 cpp include include include using namespace std; int n,a[200200],times[200200],minval=0x3f3f3f3f,m ...
分类:
其他好文 时间:
2019-05-03 11:24:28
阅读次数:
102
A sequence X_1, X_2, ..., X_n is fibonacci-like if: n >= 3 X_i + X_{i+1} = X_{i+2} for all i + 2 <= n Given a strictly increasing array A of positive ...
分类:
其他好文 时间:
2019-05-03 09:23:55
阅读次数:
97
大意: 给定序列$a$, 求选出最长的一个子序列, 使得lcm不超过m. 刚开始想复杂了, 想着枚举gcd然后背包, 这样复杂度就是$O(\sum\limits_{i=1}^m \frac{m\sigma_0(i)}{i})$...... 估计了一下1e6大概只有1e8, 感觉剪个枝应该就可以过了, ...
分类:
其他好文 时间:
2019-05-01 18:41:00
阅读次数:
108
Dynamic Programming 实际上是[LeetCode] 系统刷题4_Binary Tree & Divide and Conquer的基础上,加上记忆化的过程。就是说,如果这个题目实际上是类似于Divide and conquer或者说是DFS,但是在计算过程中有很多重复计算同样的过程 ...
分类:
其他好文 时间:
2019-04-30 01:21:44
阅读次数:
159
ASP.NET validation controls validate the user input data to ensure that useless, unauthenticated, or contradictory data don't get stored. ASP.NET prov ...
分类:
Web程序 时间:
2019-04-28 15:56:56
阅读次数:
113