C++ Easy Short Math Solution
\nclass Solution {\npublic:\n    int minElements(vector<int>& nums, int limit, int goal) {\n        long long sum=0;\n        for(int i=0;i<nums.size();i++)\n  
```\nclass Solution {\npublic:\n    int minElements(vector<int>& nums, int limit, int goal) {\n        long long sum=0;\n        for(int i=0;i<nums.size();i++)\n        {\n            sum+=nums[i];\n        }\n        int ans=0;\n        long long x = goal-sum;\n        x=abs(x);\n        if(x%limit==0)\n        {\n            ans=x/limit;\n            return ans;\n        }\n        ans=x/limit;\n        ans+=1;\n        return ans;\n    }\n};\n```
[]