样例过了,自己造的数据也过了
代码:
#include<cstdio> int main(){ double a, b; scanf("%lf%lf", &a, &b); printf("R = %.2lf", 1.0/(1.0/a+1.0/b));//直接套公式 return 0; }