
深度优先搜索DFS
文章平均质量分 76
xtulollipop
这个作者很懒,什么都没留下…
展开
-
杭电2553 N皇后问题
N皇后问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11191 Accepted Submission(s): 4987Problem Description在N*N的方格棋盘放置了N个皇后,使得原创 2015-04-29 14:12:15 · 456 阅读 · 0 评论 -
Transportation poj1040
DescriptionRuratania is just entering capitalism and is establishing new enterprising activities in many fields in- cluding transport. The transportation company TransRuratania is starting a new原创 2015-07-22 21:15:05 · 669 阅读 · 0 评论 -
July Number zoj3436
Description The digital difference of a positive number is constituted by the difference between each two neighboring digits (with the leading zeros omitted). For example the digital difference of 113原创 2015-07-26 15:55:07 · 734 阅读 · 0 评论 -
杭电 1106 Prime Ring Problem
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31842 Accepted Submission(s): 14076Problem DescriptionA rin原创 2015-04-29 14:17:34 · 363 阅读 · 0 评论 -
杭电 1015 Safecracker
SafecrackerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9845 Accepted Submission(s): 5026Problem Description=== Op tech br原创 2015-04-29 14:21:39 · 480 阅读 · 0 评论 -
杭电1045 Fire Net
Fire NetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7331 Accepted Submission(s): 4186Problem DescriptionSuppose that we h原创 2015-05-13 13:51:18 · 438 阅读 · 0 评论 -
poj 2078 Matrix
DescriptionGiven an n*n matrix A, whose entries Ai,j are integer numbers ( 0 You can do the SHIFT operation at arbitrary row, and as many times as you like. Your task is to minimize max0{C原创 2015-05-13 14:10:56 · 831 阅读 · 0 评论 -
poj 2386 Lake Counting
Lake CountingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 22612 Accepted: 11402DescriptionDue to recent rains, water has pooled in various places in原创 2015-04-29 14:26:47 · 443 阅读 · 0 评论 -
杭电1455 SticksSticks
SticksTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7223 Accepted Submission(s): 2115Problem DescriptionGeorge took sticks原创 2015-05-13 13:31:53 · 536 阅读 · 0 评论 -
poj 1321棋盘问题
Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n原创 2015-05-13 14:14:56 · 299 阅读 · 0 评论 -
codeforces685A+DFS
Robbers, who attacked the Gerda’s cab, are very successful in covering from the kingdom police. To make the goal of catching them even harder, they use their own watches.First, as they know that kingdo原创 2016-09-07 18:16:24 · 308 阅读 · 0 评论