One line Python answer
Code\n\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        return abs(sum(nums)-goal)//limit if abs(sum(nums)-g
# Code\n```\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        return abs(sum(nums)-goal)//limit if abs(sum(nums)-goal)%limit==0 else abs(sum(nums)-goal)//limit+1\n```
['Python', 'Python3']