3849 - 2.24物理方面:求出跑道长度
时间限制 : 1 秒
内存限制 : 128 MB
(物理方面:求出跑道长度)假设一个飞机的加速度是a而起飞速度是v,那么可以使用下面的公式计算出飞机起飞所需要的最短跑到长度:

题目输入
输入数据v和a
题目输出
在屏幕上显示这段文字The minimum runway length for this airplane is 输出结果(小数点后四舍五入保留三位)
输入/输出样例
输入格式
60 3.5
输出格式
The minimum runway length for this airplane is 514.286
Java解答
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); double v = input.nextDouble(); double a = input.nextDouble(); double l=Math.round(v*v*1000/(2*a))/1000.0; System.out.println("The minimum runway length for this airplane is "+l); } }