Python one liner
Code\npython3 []\nclass Solution:\n    def maxCount(self, banned: List[int], n: int, maxSum: int) -> int:\n        return bisect.bisect(list(accumulate(sorted(l
# Code\n```python3 []\nclass Solution:\n    def maxCount(self, banned: List[int], n: int, maxSum: int) -> int:\n        return bisect.bisect(list(accumulate(sorted(list(set(range(1,n+1)) - set(banned))),operator.add)),maxSum)\n```
['Python3']