题解 | #牛牛的并联电路#
牛牛的并联电路
http://www.nowcoder.com/practice/6e13936b6fc54f52ac22efd6c8e7fef3
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); double r1=sc.nextDouble(); double r2=sc.nextDouble(); System.out.printf("%.1f",(r1*r2)/(r1+r2)); } }