码迷,mamicode.com
首页 >  
搜索关键字:always on    ( 2020个结果
A Room-Escape game made by Clojure, playing with telnet and pure-text commands - Part 1
Code path: https://github.com/bluesilence/Lisp/tree/master/clojure/projects/room-escape As I have been a fan of room-escape games, there have always been a desire to make my own story of a roo...
分类:Web程序   时间:2014-10-05 17:44:38    阅读次数:269
hdu 2999 Stone Game, Why are you always there? (简单SG,有个优化)
题意:一排石头,个数是K。有n个数,a1...an。每人每次取石子只能取连续的x个。x属于a1...an的一个。没法取者负。思路:简单的SG。但是TLE!后面加了一个优化~这个优化不好想到吧,看了别人的代码才发现的。就是把a1...an中重复的去掉!。。。直接看代码。代码:int sg[1005];...
分类:其他好文   时间:2014-10-03 21:44:55    阅读次数:234
HDU-2857-Mirror and Light(计算几何)
Problem Description The light travels in a straight line and always goes in the minimal path between two points, are the basic laws of optics. Now, our problem is that, if a branch of light goes...
分类:其他好文   时间:2014-10-03 04:12:15    阅读次数:162
UVA 1069 - Always an integer(数论)
1069 - Always an integer题意:给定一个多项式,推断是否总是整数思路:LRJ大白上的例题,上面给出了证明,仅仅要1到k + 1(k为最高次数)带入方程都是整数,那么整个方程就是整数,处理出字符串后,然后过程用高速幂计算,推断最后答案是否为0,看是否全都满足是整数。代码:#inc...
分类:其他好文   时间:2014-10-01 23:29:52    阅读次数:213
最全英文停用词表整理(1434个)
able about above according accordingly across actually after afterwards again against ain't all allow allows almost alone along already also although always am among amongst an and another any anybody...
分类:其他好文   时间:2014-09-30 17:24:59    阅读次数:357
HDU 5032 Always Cook Mushroom
题意: 一块田地坐标从(1,1)到(1000,1000)  每块田地能种(x+A)*(y+B)的蘑菇  问  形似(0,0)(p,0)(p,q)这样的三角形区域能种的蘑菇的数量 思路: 其实很简单  枚举x  根据输入的向量  我们可以求出每个x对应最高的y  然后对于y可以用等差数列求和  再加上y个B  最后乘(x+A)就好了  但是这题时间卡得挺恶心的… 一开始写完T了  输入开挂还...
分类:其他好文   时间:2014-09-25 16:47:37    阅读次数:124
Hdu 5032 Always Cook Mushroom (树状数组)
题目大意: 在一个1000*1000的二维平面上,每一个整点都有一个权值,权值大小是 the production in the grid points (x, y) is (x + A)(y + B) where A, B are two constant.  思路分析: 先离线处理出所有的询问,对于每一个询问都有一个极角,按照极角排序。 然后对于平面上每一个点,都依次的加入到B...
分类:其他好文   时间:2014-09-25 03:55:08    阅读次数:247
[hdu 5032]2014北京网络赛Always Cook Mushroom 离散化+离线线段树/树状数组
Always Cook Mushroom Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 196    Accepted Submission(s): 54 Problem Description Matt ha...
分类:其他好文   时间:2014-09-24 14:02:46    阅读次数:235
用LinkedHashMap实现LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key i...
分类:其他好文   时间:2014-09-24 10:31:06    阅读次数:251
用LinkedHashMap用实现LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key i...
分类:其他好文   时间:2014-09-24 09:40:46    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!