最佳答案:class Solution { public: int maximumProduct(vector<int> &nums) { int len = nums.size(); if