fork(4) download
  1. import java.io.*;
  2.  
  3. public class Main
  4. {
  5. public static void main(String[] args) throws IOException
  6. {
  7. try
  8. {
  9.  
  10. int tests = Integer.parseInt(br.readLine());
  11.  
  12. while (tests-- > 0)
  13. {
  14. int v1 = Integer.parseInt(br.readLine());
  15. int v2 = Integer.parseInt(br.readLine());
  16. System.out.println(2 * v1 * v2 / (v1 + v2));
  17. }
  18. }
  19. catch (Exception e)
  20. {
  21. System.exit(0);
  22. }
  23. }
  24. }
Success #stdin #stdout 0.04s 4386816KB
stdin
2
50 50
60 40
stdout
Standard output is empty