💡 CONCISE CODE✅ || 🌟JAVA || 🧑‍💻 BEGINNER FREINDLY
Code


# Code
```java []
class Solution {
    public int maxDivScore(int[] nums, int[] divisors) {
         int min = 0, ans = Integer.MAX_VALUE;

        for (int i = 0; i < divisors.length; i++) {
            int count = 0;
            for (int j = 0; j < nums.length; j++) {
                if (nums[j] % divisors[i] == 0) {
                    count++;
                }
            }
            if (count > min || ( count == min && ans > divisors[i]) ) {
                ans = divisors[i];
                min = count;
            }
        }

        return ans;
    }
}
```
![7b3ed9e7-75a3-497e-85ef-237ed4f4fef7_1735690315.3860667.png](https://assets.leetcode.com/users/images/0dadd776-0fd6-488a-b81f-1bf1b5b0765e_1736944587.1041303.png)

['Java']