python-algorithm

[백준] 15051

무적김두칠 2021. 3. 5. 14:09

1
2
3
4
a=int(input())
b=int(input())
c=int(input())
print(min(2*b+4*c,2*a+2*c,4*a+2*b))
cs

각각 1층 2층 3층에 기계를 세웠다고 가정했을때의 상황중에서 가장 적은 이동의 경우를 출력하면됩니다.

반응형