对于这题本人刚开始的时候觉得应该用DFS来解决实现这个问题,但由于本人对于DFS并不是太熟,所以就放弃了这个想法;但又想了想要按照这个要求实现问题则必须是黑白相间,然后把是字符是'B'或'W'改为'-',即可;下面贴一下我的代码吧 1 #include 2 #include 3 #include 4...
分类:
其他好文 时间:
2015-12-19 00:03:21
阅读次数:
254
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou...
分类:
其他好文 时间:
2015-12-06 11:28:02
阅读次数:
156
ArrayTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5587DescriptionVicky is a magician who loves math. She has gr...
分类:
其他好文 时间:
2015-11-29 21:20:44
阅读次数:
368
C. Marina and VasyaMarina loves strings of the same length and Vasya loves when there is a third string, different from them in exactly t characters. ...
分类:
其他好文 时间:
2015-11-27 00:41:56
阅读次数:
236
1.CDNJShttps://cdnjs.com/librariesFork me on GitHub Everyone loves theGoogle CDNright? EvenMicrosoft runs their own CDN. The problem is, they only hos...
分类:
Web程序 时间:
2015-11-21 00:23:37
阅读次数:
315
DZY Loves Topological SortingProblem DescriptionA topological sort or topological ordering of a directed graph is a linear ordering of its vertices su...
分类:
其他好文 时间:
2015-11-10 20:55:05
阅读次数:
257
hdu5269 ZYB loves Xor I 异或,字典树ZYB loves Xor IAccepts: 142Submissions: 696Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Othe....
分类:
其他好文 时间:
2015-11-05 00:30:50
阅读次数:
172
C. Dreamoon and SumsDreamoon loves summing up something for no reason. One day he obtains two integersaandboccasionally. He wants to calculate the sum...
分类:
其他好文 时间:
2015-11-02 17:12:14
阅读次数:
234
A schoolboy named Vasya loves reading books on programming and mathematics. He has recently read an encyclopedia article that described the method ofm...
分类:
其他好文 时间:
2015-10-27 17:22:07
阅读次数:
174
C. Median SmoothingA schoolboy named Vasya loves reading books on programming and mathematics. He has recently read an encyclopedia article that descr...
分类:
其他好文 时间:
2015-10-26 18:33:44
阅读次数:
198