← Back to List

9469번: 폰 노이만 ↗

Solutions

Python 3
115 B | 115 chars
for i in range(int(input())):
    N,D,A,B,F=list(map(float,input().split()))
    N=int(N)
    print(N,(D/(A+B))*F)