编程介的小学生 2017-02-05 12:00 采纳率: 20.5%
浏览 914
已采纳

Highway

You just got your year-end bonus. As you had a lot of money, you decided to take your family to the United States for a twenty-day self-driving travel. One day, when you were driving on the Great Plains, you found you had left highway by accident. After checking your GPS, you realized that you were now D (0 < D <= 1000) miles from the highway. The highway is straight and extends infinitely. When you are driving outside the highway, your maximum speed is v0 mph, but on the highway you can move in a maximum speed of v1 mph (200 >= v1 > 1.2 v0 > 0). It took no time to get on or off the highway. Suddenly, it came to your mind that there was a region inside which any point can be reached within T (0 < T <= 1000) hours. You wanted to know area of this region.
输入描述:
Input contains no more than 50 test cases.

Each test case is a single line containing 4 integers v0, v1, D and T, as above mentioned.

输出描述:
For each test case, output your answer in a line with the case number, follow the format in sample. Its unit should be square mile. Your answer will be accepted if its absolute or relative error is less than 10-6.

This problem is special judged.

输入例子:
5 10 10 10
5 20 10 10

输出例子:
Case 1: 9360.97707377
Case 2: 14873.82733943
Hint
You should print a blank after ":" in the output.

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图