#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
#
# @param A int整型一维数组
# @return int整型一维数组
#
class Solution:
def multiply(self , A: List[int]) -> List[int]:
# write code here
B=[]
for i in range(0,len(A)):
mul=1
for j in range(0,len(A)):
if i!=j:
mul=mul*A[j]
B.append(mul)
return B
10-03
162
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-21
104
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-10
101
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-20
329
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-17
594
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交