Easy C++ Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    Solution(){\n         ios_base::sync_with_stdio(false);\n         cin.tie(NULL);\n         cout.tie(NULL);\n    }\n    int minElements(vector<int>& nums, int limit, int goal) {\n        long long int Sum = 0;\n        for(int i=0;i<nums.size();i++) Sum+=nums[i];\n        if(Sum==goal) return 0;\n        long long int diff = abs(Sum-goal);\n        if(diff<limit) return 1;\n        return (diff%limit==0)?diff/limit:diff/limit+1;\n    }\n};\n```
['C++']