본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]21105번 New Financial Year

by 현장 2021. 4. 15.

-코드

t = int(input())

for i in range(t):
    p, c = list(map(float, input().split()))
    r = p * 100 / (c + 100)

    print(round(r, 9))