← Back to List

10185번: Focus ↗

Solutions

Python 3
118 B | 118 chars
for i in range(int(input())):
    a, b = map(float, input().split())
    d = a * b / (a + b)
    print(f"f = {d:.1f}")