__water

追逐梦想.

hdu4885

题意:给你n个加油站的坐标,和起点终点坐标, 然后你开车用起点到终点, 你的车最多只能开L米,每经过一个加油站必定要加油,问你要加油几次。 先建图,跑个bfs即可,注意由于每经过一个加油站都要加油,所以路线不能重叠,所以要判一下斜率相等。#include<bits/stdc++.h>...

2017-02-27 22:20:26

阅读数 142

评论数 0

poj-2251-Dungeon Master(bfs)

Dungeon Master Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 23841   Accepted: 9270 Description You are ...

2016-02-29 21:08:58

阅读数 415

评论数 0

hdu-2612-find a way(bfs)

Find a way Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8468    Accepted Submission(s):...

2016-02-29 20:56:25

阅读数 439

评论数 0

hdu-1242Rescue(优先队列+bfs)

Rescue Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 23586    Accepted Submission(s): 83...

2016-02-28 09:59:06

阅读数 539

评论数 0

hdu1180-诡异的楼梯(bfs+优先队列)

诡异的楼梯 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/65536 K (Java/Others) Total Submission(s): 11689    Accepted Submission(s): 2895...

2016-02-27 18:07:20

阅读数 511

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭