Easy || C++
\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n        int dLen = divisors.size(),n=nums.size(),c,maxVal=0,ans=IN
```\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n        int dLen = divisors.size(),n=nums.size(),c,maxVal=0,ans=INT_MAX;\n        \n        for(int i=0;i<dLen;i++){\n            c=0;\n            for(int j=0;j<n;j++){\n                if(nums[j]%divisors[i] == 0){\n                    c++;\n                }\n            }\n            if(c==maxVal){\n                ans = min(ans,divisors[i]);\n            }\n            else if(c > maxVal){\n                maxVal = c;\n                ans = divisors[i];\n            }\n        }\n        return ans;\n    }\n};\n```
['C']