====搜索====
文章平均质量分 79
userluoxuan
这个作者很懒,什么都没留下…
展开
-
Can you solve this equation?(二分)
解题思路:二分,原创 2014-07-26 22:26:38 · 518 阅读 · 0 评论 -
FLIP GAME
解题思路:题目大意是翻转一枚硬币,则原创 2014-07-26 22:59:25 · 477 阅读 · 0 评论 -
Fire Game(BFS)
解题思路:W代表草坪,只有草坪才能燃烧,让你给两块草坪点火,火势只能向上下左右蔓延,问把所有草坪烧完的最短时间。求最短时间又得把对整个图进行检索,典型的BFS,火向四周蔓延一次,时间加一。该题特别之处就在于是两处同时进行BFS。其实完全可以看做交替进行BFS,即你先放火,我再放火,你的火先蔓延一块草地,我再跟着蔓延一块草地,直到烧完。所以检索的时候,当第一把火燃烧到第二把火蔓延的地方会发现,悲原创 2014-07-26 21:09:05 · 571 阅读 · 0 评论 -
Prime Ring Problem(DFS)
解题报告:原创 2014-07-26 22:09:09 · 410 阅读 · 0 评论 -
Square(DFS)
DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number of test cases.原创 2014-07-26 20:58:20 · 716 阅读 · 0 评论 -
Dating with girls(1)
解题思路:先制定一个数,然后在后面进行原创 2014-07-26 22:14:47 · 646 阅读 · 0 评论 -
Paid Roads(DFS)
解题思路:这题一开始以为是最短路类型的,后来发现,原创 2014-07-29 16:57:14 · 481 阅读 · 0 评论 -
一元三次方程求解(折半查找)
Description有形如:ax3+bx2+cx+d=0 这样的一个一元三次方程。给出该方程中各项的系数(a,b,c,d 均为实数),并约定该方程存在三个不同实根(根的范围在-100至100之间),且根与根之差的绝对值>=1。请你求出这个方程的三个实根。Input只有一行,包括4个实数a,b,c,d,中间用一个或多个空格隔开。Output只原创 2014-07-12 14:55:39 · 1067 阅读 · 0 评论 -
Lake Countinge的s
DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contai原创 2014-07-26 19:58:55 · 626 阅读 · 0 评论 -
Red and Black(DFS)
解题思路:题目大意就是一个人只能走黑格子不能走红格子,原创 2014-07-26 21:33:49 · 412 阅读 · 0 评论 -
The Pilots Brothers' refrigerator
DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles on the refrigerator door. Every handle c原创 2014-07-26 21:36:30 · 472 阅读 · 0 评论