-Code
for _ in range(int(input())):
p, q = map(int, input().split())
f = round(1/(1/p + 1/q), 1)
print(f"f = {f:.1f}")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 25829번 Presidential Election (1) | 2023.11.23 |
---|---|
[백준/파이썬] 29986번 Amusement Park Adventure (1) | 2023.11.22 |
[백준/파이썬] 30684번 모르고리즘 회장 정하기 (1) | 2023.11.20 |
[백준/파이썬] 30676번 이 별은 무슨 색일까 (0) | 2023.11.19 |
[백준/파이썬] 7280번 Kortos (0) | 2023.11.18 |