1753. Maximum Score From Removing Stones

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 1753

class Solution:
    def maximumScore(self, a: int, b: int, c: int) -> int:
        a, b, c = sorted([a, b, c])
        if a + b < c:
            return a + b
        return (a + b + c) >> 1