码迷,mamicode.com
首页 >  
搜索关键字:d. arthur and walls    ( 185个结果
Codeforces Round #297 (Div. 2) D题. Arthur and Walls(BFS)
题目地址:Arthur and Walls 这题有一个脑洞,对于当前的点(i,j)并且此点为”*”来说,若存在包含它的2*2正方形中除了它自己外,另外三个点都是”.”,那么这个点就必须要变成”.”。由于去掉这个点之后会对周围的8个点造成影响,所以可以用BFS去搜。WA第12组的应该是只考虑了会影响到周围的4个点了。 代码如下:#include #include <strin...
分类:其他好文   时间:2015-03-28 11:39:34    阅读次数:132
运行nltk示例 Resource u'tokenizers punkt english.pickle' not found解决
nltk安装完毕后,编写如下示例程序并运行,报Resource u'tokenizers/punkt/english.pickle' not found错误import nltksentence = """At eight o'clock on Thursday morning Arthur did...
分类:其他好文   时间:2015-03-18 20:10:08    阅读次数:2769
poj1178 floyd+枚举
http://poj.org/problem?id=1178 Description Centuries ago, King Arthur and the Knights of the Round Table used to meet every year on New Year's Day to celebrate their fellowship. In remembrance o...
分类:其他好文   时间:2015-03-16 17:54:39    阅读次数:144
Codeforces Round #293 Div2 E(Arthur and Questions)
Codeforces Round #293 Div2 E(Arthur and Questions)...
分类:其他好文   时间:2015-03-05 12:58:17    阅读次数:120
【二分答案+贪心】UVa 1335 - Beijing Guards
Beijing was once surrounded by four rings of city walls: the Forbidden City Wall, the Imperial City Wall, the Inner City Wall, and finally the Outer C...
分类:其他好文   时间:2015-02-27 16:27:30    阅读次数:183
hdu 1536 S-Nim 博弈论,,求出SG'函数就可以解决
Problem Description Arthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows: The starting position has a number of heaps, all containing some, not necessarily equal, number of beads. The players t...
分类:其他好文   时间:2015-02-26 23:05:36    阅读次数:422
UVA 784-Maze Exploration(dfs)
Maze Exploration  A maze of rectangular rooms is represented on a two dimensional grid as illustrated in figure 1a. Each point of the grid is represented by a character. The points of room walls are ...
分类:其他好文   时间:2015-02-14 08:45:35    阅读次数:134
codecombat js
#1// Move to the gem.// Don't touch the walls!// Type your code below.this.moveRight();this.moveDown();this.moveRight();#2// Grab all the gems using y...
分类:Web程序   时间:2015-02-09 22:52:06    阅读次数:202
探索Material Design
探索Material DesignBy Arthur Bodolec, Design co-founder at feedly谷歌推出了AndroidLollipop版本的系统,其中介绍了一种新的视觉设计语言Material Design(材料设计),在新系统中,Android对视觉,运动,以及跨平台和设备的交互设计上进行全面的指导。十月七日,我参加了一个谷歌举办的研讨会,在这里材料设计的UX团队分...
分类:其他好文   时间:2015-02-07 00:38:45    阅读次数:284
POJ 1178 预处理+枚举+floyd
CamelotTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 2839Accepted: 1334DescriptionCenturies ago, King Arthur and the Knights of the Round T...
分类:其他好文   时间:2015-02-04 01:57:35    阅读次数:182
185条   上一页 1 ... 14 15 16 17 18 19 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!