CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能 数学计算/工程计算

文件名称:transporting

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2013-10-14
  • 文件大小:
    441kb
  • 已下载:
    2次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

小明的飞机快要赶不上了!

幸好大厅的路上有一些传送带。每个传送带都有一定的速度,传送带之间没有重叠。

小明自己行走的速度为w,如果传送带的速度为v的话,在传送带上走的速度就是w+v。

但是小明还是很着急,所以他决定跑一段时间t。他跑的速度是r,那么如果传送带的速度为v的话,在传送带上跑的速度就是r+v。

对于时间t,他不一定要连续跑,可以走走再跑。也不一定非要跑够t。

问小明至少需要多少时间才能到达终点。



输入第一行为用例数T,1<=T<=40。

每一组用例的第一行包含五个整数:

X:为大厅的长度,小明起始位于0,终点是X,1<=X<=1000000

W:为走路的速度

R:为跑步的速度,1<=W<R<=100

t:最多能跑t秒,1<=t<=1000000

n:传送带的个数

接下来的n行,表示n个传送带的详细信息。每行包含三个整数:Bi,Ei,Vi,分别表示传送带的起始位置、终止位置和速度,0<=Bi<Ei<=X,1<=vi<=100

输出包含一个数字,表示至少需要多少时间。输出四舍五入到6位小数。-Xiao Ming aircraft about to catch up !

Fortunately, there are some belt hall way . Each conveyor has a constant speed , there is no overlap between the conveyor .

Bob his walking speed of w, if the belt speed is v, the walking speed of the belt is w+ v.

But Xiao Ming is still very anxious, so he decided to run for some time t. His running speed is r, then if the belt speed of v, the speed of the conveyor belt is running on r+ v.

For the time t, he does not have to run continuously , you can walk rerun . Does not necessarily have to run enough t.

Q. Xiaoming at least the time required to reach the end.



Enter the first act with a number of cases T, 1 <= T <= 40.

Each set of use cases first line contains five integers:

X: is the length of the hall , Xiao Ming starting at 0 , the end is X, 1 <= X <= 1000000

W: the walking speed

R: the running speed , 1 <= W <R <= 100

t: maximum run t seconds , 1 <= t <= 1000000

n: number of conveyor belts

The next
(系统自动生成,下载前可以参看下载内容)

下载文件列表

5. 传送带/5. 传送带/5. 传送带.cpp
5. 传送带/5. 传送带/5. 传送带.vcxproj
5. 传送带/5. 传送带/5. 传送带.vcxproj.filters
5. 传送带/5. 传送带/Debug/5. 传送带.obj
5. 传送带/5. 传送带/Debug/5. 传送带.tlog/5. 传送带.lastbuildstate
5. 传送带/5. 传送带/Debug/5. 传送带.tlog/cl.command.1.tlog
5. 传送带/5. 传送带/Debug/5. 传送带.tlog/CL.read.1.tlog
5. 传送带/5. 传送带/Debug/5. 传送带.tlog/CL.write.1.tlog
5. 传送带/5. 传送带/Debug/5. 传送带.tlog/link.command.1.tlog
5. 传送带/5. 传送带/Debug/5. 传送带.tlog/link.read.1.tlog
5. 传送带/5. 传送带/Debug/5. 传送带.tlog/link.write.1.tlog
5. 传送带/5. 传送带/Debug/vc120.idb
5. 传送带/5. 传送带/Debug/vc120.pdb
5. 传送带/5. 传送带.sdf
5. 传送带/5. 传送带.sln
5. 传送带/5. 传送带.v12.suo
5. 传送带/Debug/5. 传送带.exe
5. 传送带/Debug/5. 传送带.ilk
5. 传送带/Debug/5. 传送带.pdb
5. 传送带/5. 传送带/Debug/5. 传送带.tlog
5. 传送带/5. 传送带/Debug
5. 传送带/5. 传送带
5. 传送带/Debug
5. 传送带

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com