C++ || Brute Force
\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n        int cnt=0,ans=INT_MAX;\n        for(int i=0;i<divisors.siz
```\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n        int cnt=0,ans=INT_MAX;\n        for(int i=0;i<divisors.size();i++){\n            int c=0;\n            for(int j=0;j<nums.size();j++){\n                if(nums[j]%divisors[i] == 0) c+=1;\n            }\n            if(c>cnt){\n                cnt = c;\n                ans = divisors[i];\n            }\n            if(c==cnt && divisors[i]<ans) ans = divisors[i];\n        }\n        return ans;\n    }\n};\n```
['C', 'C++']