6 条题解
- 1
信息
- ID
- 43
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 2
- 标签
- 递交数
- 511
- 已通过
- 317
- 上传者
kc2班yyy小恐龙600分谁敢挑战
。疑似少打个0哈
哇咔咔,好厉害( ⊙ o ⊙ )啊!
book司仪
a,b,c,d =map(float, input().split())
e =1/(1/a+1/b)
f =1/(1/a+1/b+1/c+1/d)
print(f"{e:.2f}")
print(f"{f:.2f}")
#include <bits/stdc++.h> using namespace std; double a,b,c,d,e,f; int main() { cin>>a>>b>>c>>d; e=1/(1/a+1/b); f=1/(1/a+1/b+1/c+1/d); printf("%.2f",e); cout<<endl; printf("%.2f",f); return 0; }
#include <iostream>
using namespace std;
int main()
{
double a,b,c,d,s;
cin>>a>>b>>c>>d;
printf("%.2f",1/((1/a)+(1/b)));cout<<endl;
s=1/((1/a)+(1/b)+(1/c)+(1/d));
printf("%.2f",s);
return 0;
}
A, B, C, D = map(float, input().split()) ab_time = 1 / (1 / A + 1 / B) abcd_time = 1 / (1 / A + 1 / B + 1 / C + 1 / D) print(f"{ab_time:.2f}") print(f"{abcd_time:.2f}")