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층에 기계를 세웠다고 가정했을때의 상황중에서 가장 적은 이동의 경우를 출력하면됩니다.
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 15236 (0) | 2021.03.05 |
---|---|
[백준] 15059 (0) | 2021.03.05 |
[백준] 15025 (0) | 2021.03.05 |
[백준] 14935 (0) | 2021.03.05 |
[백준] 14264 (0) | 2021.03.05 |
댓글