fork download
  1. import java.io.*;
  2.  
  3. class Main {
  4. static double nextDouble() throws IOException {
  5. in.nextToken();
  6. return in.nval;
  7. }
  8. public static void main(String[] args) throws java.lang.Exception {
  9. double a, b;
  10. a = nextDouble();
  11. b = nextDouble();
  12. double t = (175*a - 75*b) / 100;
  13. double v = 75 / (a - t);
  14. double v0 = (50 - v*t) / t;
  15. System.out.printf("%.6f", v0);
  16. }
  17. }
  18.  
Success #stdin #stdout 0.05s 2184192KB
stdin
9.63 19.32
stdout
10.844104