Python Elegant & Short | itertools | 1-line
\nfrom itertools import accumulate\nfrom typing import List\n\n\nclass Solution:\n    def maxScore(self, nums: List[int]) -> int:\n        return sum(p > 0 for 
```\nfrom itertools import accumulate\nfrom typing import List\n\n\nclass Solution:\n    def maxScore(self, nums: List[int]) -> int:\n        return sum(p > 0 for p in accumulate(sorted(nums, reverse=True)))\n\n```
['Python3']