码迷,mamicode.com
首页 >  
搜索关键字:motion sensing game    ( 5950个结果
13行js写贪吃蛇游戏
先上源码,版本是ES6 13行常规(700bytes) shortest snake game.html 13行变色(750bytes) chameleon_game.html 压缩后的500bytes(当然两处document还是可以用eval压缩的) index.500bytes.html 之前 ...
分类:Web程序   时间:2018-07-13 20:23:01    阅读次数:301
SPOJ - AMR11A
Thanks a lot for helping Harry Potter in finding the Sorcerer's Stone of Immortality in October. Did we not tell you that it was just an online game ? ...
分类:其他好文   时间:2018-07-13 16:17:03    阅读次数:173
CodeForces - 779D String Game
Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for her, because she ...
分类:其他好文   时间:2018-07-13 12:09:48    阅读次数:190
python中,类属性为只读属性
classComputer:"""电脑"""#__slots__=(‘_name‘,‘mem‘,‘cpu‘)def__init__(self,name,mem,cpu):self._name=nameself.mem=memself.cpu=cpu@propertydefname(self):#只读,getter方法returnself._namedefplay(self,game=‘qq游戏‘)
分类:编程语言   时间:2018-07-13 11:13:30    阅读次数:308
AGC 022 C - Remainder Game
题面在这里! 显然权值是 2^i 这种的话就是要你贪心,高位能不选就不选。 并且如果 % x 之后再去 % 一个>=x的数是没有用的,所以我们可以把操作的k看成单调递减序列。 这样的话就是一个有向图联通性问题了,直接做就可以了。 ...
分类:其他好文   时间:2018-07-12 20:46:34    阅读次数:127
【HDU 1846】 Brave Game
【题目链接】 http://acm.hdu.edu.cn/showproblem.php?pid=1846 【算法】 巴什博弈 若有(m+1)个石子,显然先手不能直接取完,后手必胜 因此,我们可以把石子总数表示为 : n = k(m+1) + r 若r不为0,则先手取走r个,若后手取s个,先手取(m ...
分类:其他好文   时间:2018-07-12 12:50:44    阅读次数:106
【CodeForces727E/CF727E】Games on a CD (字符串哈希)
题目: = "CodeForces727E" 分析: = 看到字符串比较,肯定想到哈希啊……现学的哈希,先丢两个重要的公式 ($seed$是大于字符集大小的质数,$p$是大质数) $$hash[i]=(hash[i 1] seed+s[i])mod \ p$$ $$hash[l,r]=(hash[r ...
分类:其他好文   时间:2018-07-11 23:55:47    阅读次数:421
【Codeforces 258A】 Game With Sticks
【题目链接】 http://codeforces.com/contest/451/problem/A 【算法】 若n和m中的最小值是奇数,则先手胜,否则后手胜 【代码】 ...
分类:其他好文   时间:2018-07-11 21:55:54    阅读次数:186
ECJTU 2018 Summer Training 2
Thanks a lot for helping Harry Potter in finding the Sorcerer's Stone of Immortality in October. Did we not tell you that it was just an online game ? ...
分类:其他好文   时间:2018-07-11 14:55:10    阅读次数:173
usaco16 jan gold
T1:angry cows Bessie the cow has designed what she thinks will be the next big hit video game: "Angry Cows". The premise, which she believes is comple ...
分类:其他好文   时间:2018-07-10 23:38:17    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!