搜索BFS
qiandfeng
这个作者很懒,什么都没留下…
展开
-
HDU 2531 Catch him(BFS)
BFS题目解题思路踩坑AC代码 题目 在美式足球中,四分卫负责指挥整只球队的进攻战术和跑位,以及给接球员传球的任务。四分卫是一只球队进攻组最重要的球员,而且一般身体都相对比较弱小,所以通常球队会安排5-7名大汉来保护他,其中站在四分卫前方、排成一线的5名球员称为进攻锋线,他们通常都是135公斤左右的壮汉。 对防守方来说,攻击对手的四分卫当然是最直接的限制对手进攻的方法。如果效果好,就可以在对方四分卫传球之前将其按翻在地,称之为擒杀。擒杀是最好的鼓舞防守队士气的方法,因为对方连传球的机会都没有,进攻就结束了,原创 2020-11-17 18:58:36 · 249 阅读 · 0 评论 -
POJ 3414 Pots(C语言)
Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap; DROP(i) em...原创 2019-08-13 15:28:01 · 243 阅读 · 0 评论 -
Hdu 1240 Asteroids(C语言)
Problem Description You’re in space. You want to get home. There are asteroids. You don’t want to hit them. Input Input to this problem will consist of a (non-empty) series of up to 100 data sets. Eac...原创 2019-08-14 10:03:50 · 165 阅读 · 0 评论 -
hdu 1312 Red and Black
Problem Description 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 adjacen...原创 2019-08-10 11:26:04 · 54 阅读 · 0 评论 -
Catch That Cow(C语言)
Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0...原创 2019-08-10 16:43:03 · 501 阅读 · 0 评论 -
Find The Multiple(DFS&&BFS)
Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 2...原创 2019-08-11 11:24:14 · 112 阅读 · 0 评论 -
Prime Path(C语言)
Description The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices. — It is a m...原创 2019-08-12 10:39:12 · 235 阅读 · 0 评论