原文地址:http://blog.csdn.net/chuyuqing/article/details/28879477使用eclipse插件创建一个web project首先创建一个Maven的Project如下图我们勾选上Create a simple project (不使用骨架)这里的Pac...
分类:
Web程序 时间:
2014-07-28 14:53:23
阅读次数:
247
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma....
分类:
编程语言 时间:
2014-07-28 11:34:40
阅读次数:
210
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma....
分类:
编程语言 时间:
2014-07-28 11:33:50
阅读次数:
278
(一)巴什博奕(Bash Game):只有一堆n个物品,两个人轮流从这堆物品中取物,规
定每次至少取一个,最多取m个。最后取光者得胜。 显然,如果n=m+1,那么由于一
次最多只能取m个,所以,无论先取者拿走多少个,后取者都能够一次拿走剩余的物品,
后者取胜。因此我们发现了如何取胜的法则:如果n=(m+1)r+s,(r为任意自然数,
s≤m),那么先取者要拿走s个物品,如果后取者拿走...
分类:
其他好文 时间:
2014-07-28 00:20:49
阅读次数:
242
A Simple Math Problem
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2512 Accepted Submission(s): 1461
Problem Description
Lele...
分类:
其他好文 时间:
2014-07-27 23:43:29
阅读次数:
302
这是个线段树题目,做之前必须要有些线段树基础才行不然你是很难理解的。此题的难点就是在于你加的数要怎么加,加入你一直加到叶子节点的话,复杂度势必会很高的具体思路在增加时,如果要加的区间正好覆盖一个节点,则增加其节点的Inc值,不再往下走,否则要更新Sum(加上本次增量),再将增量往下传。这样更新的复杂...
分类:
其他好文 时间:
2014-07-27 22:45:49
阅读次数:
290
一、题目DescriptionAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made ofnhori...
分类:
其他好文 时间:
2014-07-27 22:38:59
阅读次数:
311
DescriptionAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made ofnhorizont...
分类:
其他好文 时间:
2014-07-27 22:17:59
阅读次数:
309
单点更新,更新时先除去 原来的数,因为有去摸,可以用乘上逆元代替。//============================================================================// Name : A.cpp// Author : ...
分类:
其他好文 时间:
2014-07-27 22:17:39
阅读次数:
217
原文link:是siggraph 2010,“Color Enhancement and Rendering in Film and Game Production”course的一个paper。从摄影到电影里面使用的技术,来启发游戏里怎么使用。很不错的一个地方是:了解到了filmic tone m...
分类:
其他好文 时间:
2014-07-27 21:40:25
阅读次数:
305