728x90
반응형
단순 사칙연산 문제이다.
a, b, c = map(int, input().split())
i, j, k = map(int, input().split())
t = min(a/i, b/j, c/k)
print(a-i*t, b-j*t, c-k*t)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 5032번 탄산 음료(python) (0) | 2021.02.25 |
---|---|
백준 알고리즘 3062번 수 뒤집기(python) (0) | 2021.02.25 |
백준 알고리즘 2755번 이번학기 평점은 몇점?(python) (0) | 2021.02.25 |
백준 알고리즘 2587번 대표값2(python) (0) | 2021.02.25 |
백준 알고리즘 10709번 기상캐스터(python) (0) | 2021.02.24 |