← Back to List

26592번: Triangle Height ↗

Solutions

Python 3
135 B | 135 chars
for i in range(int(input())):
    a, b = map(float, input().split())
    
    print(f"The height of the triangle is {2*a/b:.2f} units")