加载中...
import java.util.ArrayList; public class Solution { public int[] multiply(int[] A) { } }
class Solution { public: vector
multiply(const vector
& A) { } };
# -*- coding:utf-8 -*- class Solution: def multiply(self, A): # write code here
using System; using System.Collections.Generic; class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param A int整型一维数组 * @return int整型一维数组 */ public List
multiply (List
A) { // write code here } }
function multiply(array) { // write code here } module.exports = { multiply : multiply };
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param A int整型一维数组 # @return int整型一维数组 # class Solution: def multiply(self , A: List[int]) -> List[int]: # write code here
package main /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param A int整型一维数组 * @return int整型一维数组 */ func multiply( A []int ) []int { // write code here }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param A int整型一维数组 * @param ALen int A数组长度 * @return int整型一维数组 * @return int* returnSize 返回数组行数 */ int* multiply(int* A, int ALen, int* returnSize ) { // write code here }
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # @param A int整型一维数组 # @return int整型一维数组 # class Solution def multiply(A) # write code here end end
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param A int整型一维数组 * @return int整型一维数组 */ def multiply(A: Array[Int]): Array[Int] = { // write code here } }
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param A int整型一维数组 * @return int整型一维数组 */ fun multiply(A: IntArray): IntArray { // write code here } }
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param A int整型一维数组 * @return int整型一维数组 */ public int[] multiply (int[] A) { // write code here } }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param A int整型一维数组 * @return int整型一维数组 */ export function multiply(A: number[]): number[] { // write code here }
public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param A int整型一维数组 * @return int整型一维数组 */ func multiply ( _ A: [Int]) -> [Int] { // write code here } }
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param A int整型一维数组 * @return int整型一维数组 */ pub fn multiply(&self, A: Vec
) -> Vec
{ // write code here } }
[1,2,3,4,5]
[120,60,40,30,24]
[100,50]
[50,100]