1561. Maximum Number of Coins You Can Get Обновлено: 2024-03-12 1 мин Algorithms , LeetCode СодержаниеLeetCode problem 1561class Solution: def maxCoins(self, piles: List[int]) -> int: piles.sort() return sum(piles[-2 : len(piles) // 3 - 1 : -2])