[파이썬/python] 백준 14215번 : 세 막대(🥉3)

x,y,z = sorted(map(int,input().split()))

if z >= x+y:
    print((x+y)*2-1)
else:
    print(x+y+z)
comment