#4014: 第2點為何RE?


smart95B3017 (YUAN)


package test;

import java.util.Scanner;
public class aaa{
 public static void main(String args[]){
 long q,w,e,r,t;
 double a,b,c;
    Scanner input=new Scanner(System.in);
    while(input.hasNext()){
       q=input.nextLong();
       w=input.nextLong();
       e=input.nextLong();
       r=input.nextLong();
       t=input.nextLong();
       b=(r-t)*(w-e);
       c=(q-e);
       a=b/c+t;
      System.out.println(""+ new java.text.DecimalFormat("0.000000").format(a));
   }
   }
}