
dfs深搜
文章平均质量分 83
cloudy_happy
像我这样优秀的人,不该平凡过一生
展开
-
hdu2266How Many Equations Can You Find dfs深搜
Now give you an string which only contains 0, 1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9.You are asked to add the sign ‘+’ or ’-’ between the characters. Just like give you a string “12345”, you can work out a string ...原创 2018-08-01 15:16:51 · 167 阅读 · 0 评论 -
CodeForces - 723D Lakes in Berland dfs
Lakes in Berland CodeForces - 723DThe map of Berland is a rectangle of the size n × m, which consists of cells of size 1 × 1. Each cell is either land or water. The map is surrounded by the oce...原创 2018-11-23 12:30:31 · 225 阅读 · 0 评论 -
poj1321棋盘问题 dfs
G - 棋盘问题 POJ - 1321 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数...原创 2018-11-22 19:16:42 · 181 阅读 · 0 评论 -
HDU2553-N皇后问题(dfs)
N皇后问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 31343 Accepted Submission(s): 13578 Problem Description在N*N的方格棋盘放置了N个皇后,使...原创 2018-06-10 21:14:18 · 184 阅读 · 0 评论 -
codeforces 510BFox And Two Dots 深搜dfs
Fox And Two Dots CodeForces - 510B Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this:Each cell contains a dot th...原创 2018-08-01 23:43:02 · 186 阅读 · 0 评论 -
hdu1010 Tempter of the Bone 深搜dfs(论代码规范的重要性)
B - Tempter of the Bone HDU - 1010 The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the gro...原创 2018-08-01 17:40:49 · 198 阅读 · 0 评论 -
hduoj1312Red and Black DFS
Red and Black There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent ...原创 2018-08-01 15:17:17 · 163 阅读 · 0 评论 -
HDU - 1241 Oil Deposits dfs
Oil Deposits HDU - 1241The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and crea...原创 2018-11-28 17:01:56 · 217 阅读 · 0 评论