BOJ - 2896 - 무알콜 칵테일

Updated:

def solution():
    A, B, C = map(int, input().split())
    I, J, K = map(int, input().split())

    minValue = min(A / I, B / J, C / K)
    print("%.4f %.4f %.4f" % (A - I * minValue, B - J * minValue, C - K * minValue))

solution()

https://www.acmicpc.net/problem/2896

Categories:

Updated:

Leave a comment