Python3 Brute Force
\n\n# Code\npython3 []\nclass Solution:\n    def maxScore(self, nums: List[int]) -> int:\n\n        ans=lcm(*nums)*gcd(*nums)\n        n=len(nums)\n\n        fo
\n\n# Code\n```python3 []\nclass Solution:\n    def maxScore(self, nums: List[int]) -> int:\n\n        ans=lcm(*nums)*gcd(*nums)\n        n=len(nums)\n\n        for i in range(n):\n            sub=nums[:i]+nums[i+1:]\n            l=lcm(*sub)\n            g=gcd(*sub)\n            ans=max(ans,l*g)\n    \n        return ans\n        \n```
['Math', 'Python', 'Python3']