2 liner || Simple maths || C++
Code\n\nclass Solution \n{\npublic:\n    int minElements(vector<int>& nums, int limit, int goal) \n    {\n        long long sum=accumulate(nums.begin(),nums.end
# Code\n```\nclass Solution \n{\npublic:\n    int minElements(vector<int>& nums, int limit, int goal) \n    {\n        long long sum=accumulate(nums.begin(),nums.end(),(long long)0);\n        return ceil((double)abs(goal-sum)/limit);\n    }\n};\n```
['C++']