[C++] Simple Solution
Code
# Code
```cpp []
class Solution {
public:
    int maxDivScore(vector<int>& nums, vector<int>& divisors) {
        int ans = -1;
        int cur = -1;
        vector<int> cnts(divisors.size(), 0);
        for(int i=0; i<divisors.size(); i++) {
            int cnt = 0;
            for(int e : nums) {
                if(e % divisors[i] == 0) cnt++;
            }
            if(cnt > cur) {
                ans = divisors[i];
                cur = cnt;
            } else if(cnt == cur) {
                ans = min(ans, divisors[i]);
            }
        }
        return ans;

    }
};
```
['C++']