It is spring time and farmers have to plant seeds in the field. Tom has a nice field, which is a rectangle with n * m squares. There are big stones in some of the squares.
Tom has a seeding-machine. ...
分类:
其他好文 时间:
2015-08-04 17:19:53
阅读次数:
77
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3183
RMQ (Range Minimum/Maximum Query)问题是指:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j
ST(实质是动态规划),O(nlogn)-O(q) online。
ST算法(Sparse Table),以求最大值为例,设d[i,j]表示[i,i+...
分类:
其他好文 时间:
2015-08-04 11:14:23
阅读次数:
122
Seeding
Time Limit: 2 Seconds
Memory Limit: 65536 KB
It is spring time and farmers have to plant seeds in the field. Tom has a nice field, which is a rectangle with n * m squares. There ...
分类:
其他好文 时间:
2015-08-03 14:46:16
阅读次数:
112
Devour Magic
Time Limit: 2000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
In Warcraft III, Destroyer is a large flying unit that must consume magic to sustain its mana. Breaking fre...
分类:
其他好文 时间:
2015-08-03 11:39:00
阅读次数:
201
Refers toDynamic Sampling and Rendering of Algebraic Point Set SurfacesGrowing Least Squares for the Analysis of Manifolds in Scale-Space
分类:
其他好文 时间:
2015-07-31 23:27:41
阅读次数:
188
这个题就是求出给的公式的结果。
只要知道异或运算满足交换律跟结合律就行了,之后就是化简公式。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2015-07-30 11:19:48
阅读次数:
143
/*** use magic 0.31868386268616s* not use magic 0.11876797676086s*/class Test { private $varstr = "123"; function __get($name) { return $...
分类:
Web程序 时间:
2015-07-30 00:28:28
阅读次数:
139
题目链接:hdu 5125 magic balls
#include
#include
#include
using namespace std;
const int maxn = 1005;
int N, M, dp[maxn][maxn], A[maxn], B[maxn];
int vec[maxn][maxn], c[maxn];
void init () {
...
分类:
其他好文 时间:
2015-07-29 01:02:36
阅读次数:
98
最近玩Bootstrap , 一些小工具 记录在案。1 定制Bootstrap ,所见即所得的修改Bootstrap的各种变量,即时查看样式的变化。http://bootswatchr.com/http://pikock.github.io/bootstrap-magic/2 很多实用的html,j...
分类:
其他好文 时间:
2015-07-28 20:42:02
阅读次数:
82
最近在看CF的相关论文,《Collaborative Filtering for Implicit Feedback Datasets》思想很好,很容易理解,但是从目标函数
是如何推导出Xu和Yi的更新公式的推导过程却没有很好的描述,所以下面写一下
推导:
首先对Xu求导:
其中Y是item矩阵,n*f维,每一行是一个item_vec,C^u是n*n维的对角矩阵,
对角线上...
分类:
其他好文 时间:
2015-07-27 21:12:10
阅读次数:
410