
广搜(BFS)
文章平均质量分 86
algzjh
这个作者很懒,什么都没留下…
展开
-
HDU1312
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17720 Accepted Submission(s): 10788Problem DescriptionThere is a r原创 2016-08-21 20:36:10 · 613 阅读 · 0 评论 -
启发式搜索
f(x)=g(x)+h(x)f(x)=g(x)+h(x) f(x)f(x)为估价函数 g(x)g(x)表示从初始状态到结点xx的实际代价 h(x)h(x)是启发性函数,表示xx到目标状态结点的最优搜索路径的评估代价。原创 2017-08-24 20:11:26 · 775 阅读 · 0 评论 -
HDU1242
RescueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27043 Accepted Submission(s): 9576Problem DescriptionAngel was caught by原创 2016-08-22 10:19:11 · 431 阅读 · 0 评论 -
URAL1325-Dirt
Dirt— Hello, may I speak to Petrov, please? Hello, my darling… You know, there was a little accident at our home… No, no, don’t worry, your computer was not damaged. It is only a bit dirty there now. W原创 2017-06-29 19:40:24 · 530 阅读 · 0 评论 -
2017计蒜之道初赛第六场-微软大楼设计方案(简单)
近日,微软新大楼的设计方案正在广泛征集中,其中一种方案格外引人注目。在这个方案中,大楼由 nn 栋楼组成,这些楼从左至右连成一排,编号依次为 11 到 nn,其中第 ii 栋楼有 h_ihi 层。每栋楼的每一层为一个独立的 办公区域,可以步行 直达同层相邻楼栋的办公区域,以及 直达同楼栋相邻楼层的办公区域。由于方案设计巧妙,上一层楼、下一层楼、向左右移动到相邻楼栋同层的办公区域均刚好原创 2017-06-07 15:12:01 · 503 阅读 · 0 评论 -
COJ-1010-Water Drinking
1010: Water DrinkingSubmit Page Summary Time Limit: 1 Sec Memory Limit: 128 Mb Submitted: 555 Solved: 193 Description The Happy Desert is full of sands. There is only a kind of ani原创 2017-05-06 12:00:28 · 661 阅读 · 0 评论 -
2017湖南多校第一场-Enterprising Escape
E(1000): Enterprising Escape Submit Page Summary Time Limit: 20 Sec Memory Limit: 1024 Mb Submitted: 109 Solved: 11 Description The Enterprise is surrounded by Klingons! Find原创 2017-03-22 15:09:49 · 668 阅读 · 0 评论 -
HDU1241
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25163 Accepted Submission(s): 14482Problem DescriptionThe GeoSurvCo原创 2016-08-22 10:06:19 · 442 阅读 · 0 评论 -
CodeForces 689B
B. Mike and Shortcutstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, Mike was very busy with studying for原创 2016-08-22 09:54:08 · 401 阅读 · 0 评论 -
POJ1426
Find The MultipleTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 27135Accepted: 11287Special JudgeDescriptionGiven a positive integer n, write a原创 2016-08-22 09:41:14 · 228 阅读 · 0 评论 -
POJ3126
Prime PathTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 17436Accepted: 9814DescriptionThe ministers of the cabinet were quite upset by the message fr原创 2016-08-22 09:29:12 · 277 阅读 · 0 评论 -
POJ1915
Knight MovesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 24777Accepted: 11709DescriptionBackgroundMr Somurolov, fabulous chess-gamer indeed, ass原创 2016-08-21 20:50:46 · 416 阅读 · 0 评论 -
POJ2449-Remmarguts' Date
Remmarguts’ DateTime Limit: 4000MS Memory Limit: 65536K Total Submissions: 30805 Accepted: 8405 Description“Good man never makes girls wait or breaks an appointment!” said the mandarin du原创 2017-08-24 21:41:37 · 281 阅读 · 0 评论