C++ || BRUTE FORCE || EASY TO UNDERSTAND
\n\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n        int x = 0, y = 0,ans = INT_MAX;\n        for(auto &i: di
````\n\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n        int x = 0, y = 0,ans = INT_MAX;\n        for(auto &i: divisors){\n            x = 0;\n            for(auto &j: nums){\n                if(j%i==0){\n                    x++;\n                }\n            }\n            if(x>y){\n                y = x;\n                ans = i;\n            }\n            if(x==y){\n                ans = min(ans,i);\n            }\n        }\n        return ans;\n    }\n};\n````
['C', 'C++']