import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param A int整型一维数组 * @return int整型一维数组 */ public int[] multiply (int[] A) { // write code here int[] arr=new int[A.length]; int product=1; for(int i=0;i<arr.length;i++){ for(int j=0;j<arr.length;j++){ if(i!=j){ product*=A[j]; } } arr[i]=product; product=1; } return arr; } }