参考了某大佬的 我们可以根据(s[n-2], a[n-1]^2, a[n-1]*a[n-2], a[n-2]^2) * A = (s[n-1], a[n]^2, a[n]*a[n-1], a[n-1]^2) 能够求出关系矩阵 |1 0 0 0 |A = |1 x^2 x 1 | |0 2*x*y y ...
分类:
其他好文 时间:
2017-07-29 20:49:59
阅读次数:
194
/* 题意:给出n,m。n表示给出的n个横坐标为1-n,y为0的坐标m表示以下有m个坐标,在横坐标上的点 向各个角度看,在可以看到最多的点在同一条直线上的点的做多值为横坐标这一点的值,最后各个 横坐标的值的和为多少 思路:由于m的值为枚举随意的两个点连成的直线,看在直线上的点有多少,看这条线和横坐标 ...
分类:
其他好文 时间:
2017-07-29 20:24:38
阅读次数:
280
1: 找小于最大的最大的 2. 排序 找第n个数: 不能在limit 里N-1, 因为limit里不计算 哈哈: distinct :在表中可能包含重复值,返回唯一不同的值, ...
分类:
数据库 时间:
2017-07-29 20:19:17
阅读次数:
252
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:
其他好文 时间:
2017-07-29 19:36:49
阅读次数:
125
1.页面 <script> $(function(){ $('.subnav .content-menu .on').after('<a class="add fb" style="margin-left:8px;" href="?m=weixin&c=weixin&a=wx_menu_publis ...
分类:
其他好文 时间:
2017-07-29 19:00:02
阅读次数:
183
E. Pig and Palindromes Peppa the Pig was walking and walked into the forest. What a strange coincidence! The forest has the shape of a rectangle, cons ...
分类:
其他好文 时间:
2017-07-29 18:58:41
阅读次数:
163
单行函数 SQL> select upper(first_name), lower(last_name), length(last_name) from employees; SQL> select (sysdate-hire_date)/7 from employees; SQL> select ...
分类:
数据库 时间:
2017-07-29 18:58:14
阅读次数:
217
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho ...
分类:
其他好文 时间:
2017-07-29 18:55:16
阅读次数:
141
运行结果: part1:实现parent() public TreeNode parent() throws InvalidNodeException { if(isValidNode()){ if(this==myTree.root){ return new SibTreeNode(); } el ...
分类:
其他好文 时间:
2017-07-29 18:18:20
阅读次数:
153
题意:给出N,k,长度为N的数列,问有多少个区间满足区间最大值-区间最小值<=k 思路:RMQ+二分 ...
分类:
其他好文 时间:
2017-07-29 18:14:36
阅读次数:
123