首先,想要快速编码需 要在编辑器中安装常用插件,下面是emmet插件的使用: html5文档结构的生成方式: 1)、!+tab键 2)、html:5 +tab键 头部head中meta字符集的生成: 1)、 meta:utf + tab键 生成:<meta http-equiv="Content-T ...
分类:
其他好文 时间:
2018-10-06 14:36:11
阅读次数:
264
Equality CF 1038A A subsequence of string ss is a string that can be derived from ssby deleting some of its symbols without changing the order of the ...
分类:
其他好文 时间:
2018-10-06 11:55:26
阅读次数:
154
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,101,18] Output: 4 Explanation: T ...
分类:
其他好文 时间:
2018-10-05 23:28:00
阅读次数:
300
http://codeforces.com/contest/1060/problem/C 题意: a、b数组长度分别为n、m。矩阵C,Cij=ai*bj。在C中找到一个子矩阵,该子矩阵所有元素和不大于x,求这样的子矩阵的最大面积。 思路: 1、将矩阵元素和转换为(Ai+……+Aj)*(Bk+……+B ...
分类:
其他好文 时间:
2018-10-05 23:03:08
阅读次数:
199
已知一个长度为n的数组a和一个长度为m的数组b,问当两者相乘组成矩阵时求满足子矩阵中所有数相加小于x的最大面积 数学题,这个问题可以转化为从A和B中找到一个子阵列,使得这些子阵列的元素总和的乘积小于或等于x,并且它们的大小的乘积是最大的 ...
分类:
其他好文 时间:
2018-10-05 20:19:33
阅读次数:
94
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: "babad" Output: ...
分类:
其他好文 时间:
2018-10-05 13:54:00
阅读次数:
168
http://codeforces.com/contest/1060/problem/B 题意:将n拆为a和b,让a+b=n且S(a)+S(b)最大,求最大的S(a)+S(b)。 思路:考虑任意一个数,例如156,将其分为 d1:(1,155)或 d2:(6,150),其实S(a)+S(b)都是12 ...
分类:
其他好文 时间:
2018-10-05 13:51:25
阅读次数:
124
贪心,找到最大的小于n的999999,就是n1,然后n2=n-n1 这两个就是最佳分配。 原因: 从99...99+x=n出发,如果99..9减去某个数,比如342,那么s(99..9)会减少s(342)=9,但是s(x+342)最多比s(x)多s(342),在没有进位发生的时候的确多了s(342) ...
分类:
其他好文 时间:
2018-10-05 10:49:54
阅读次数:
139
http://codeforces.com/contest/1060/problem/C 矩形中的和只和n,m数列在这上面的分别的和有关。比如1,2,3和7,8,9交叉形成的和=(1+2+3)*(7+8+9)=144。 而两个的交叉是分别的选择,无相互影响。 那么,策略就是,我们先找到对于数列n来说 ...
分类:
其他好文 时间:
2018-10-05 10:46:31
阅读次数:
158
题目链接:https://nanti.jisuanke.com/t/19979 题意:给出一个 n 个点,m 条边的 DAG,选出最大的子集使得其中结点两两不能到达。 题解:参考自:https://blog.csdn.net/winter2121/article/details/79849472 首 ...
分类:
其他好文 时间:
2018-10-04 23:56:53
阅读次数:
258