1753. Maximum Score From Removing Stones

Updated: 2024-03-12
1 min read
[]

On This Page

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