C++ || beginer friendly
\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n       int n=divisors.size();\n        vector<int> s(n,0);\n      
```\nclass Solution {\npublic:\n    int maxDivScore(vector<int>& nums, vector<int>& divisors) {\n       int n=divisors.size();\n        vector<int> s(n,0);\n       vector<pair<int,int>> vec;\n        for(int i=0;i<n;i++){\n            int c=0;\n            for(int j=0;j<nums.size();j++){\n                if(nums[j]%divisors[i]==0)c++;\n            }\n            vec.push_back({c,divisors[i]});\n        }\n        sort(vec.begin(),vec.end());\n        int x=vec[vec.size()-1].first;\n        for(auto it: vec){\n            if(it.first==x){\n                return it.second;\n            }\n        }\n        return 0;\n    }\n};\n```
['C']