chillurbrain

Доп. из 10.2. Букмекеры.

May 26th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Main {
  4.     public static void main(String args[]) {
  5.         Scanner sc = new Scanner(System.in);
  6.         double k1 = sc.nextDouble();
  7.         double k2 = sc.nextDouble();
  8.         double k3 = sc.nextDouble();
  9.         System.out.print(Math.round(1000 * k1 * k2 * k3 / (k1 * k2 + k2 * k3 + k3 * k1)));
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment