加载中...
public class Solution { public int jumpFloor(int target) { } }
class Solution { public: int jumpFloor(int number) { } };
# -*- coding:utf-8 -*- class Solution: def jumpFloor(self, number): # write code here
class Solution { public int jumpFloor(int number) { // write code here } }
function jumpFloor(number) { // write code here } module.exports = { jumpFloor : jumpFloor };
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param number int整型 # @return int整型 # class Solution: def jumpFloor(self , number: int) -> int: # write code here
package main /** * * @param number int整型 * @return int整型 */ func jumpFloor( number int ) int { // write code here }
/** * * @param number int整型 * @return int整型 */ int jumpFloor(int number ) { // write code here }
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # @param number int整型 # @return int整型 # class Solution def jumpFloor(number) # write code here end end
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param number int整型 * @return int整型 */ def jumpFloor(number: Int): Int = { // write code here } }
object Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param number int整型 * @return int整型 */ fun jumpFloor(number: Int): Int { // write code here } }
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param number int整型 * @return int整型 */ public int jumpFloor (int number) { // write code here } }
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param number int整型 * @return int整型 */ export function jumpFloor(number: number): number { // write code here }
public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param number int整型 * @return int整型 */ func jumpFloor ( _ number: Int) -> Int { // write code here } }
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param number int整型 * @return int整型 */ pub fn jumpFloor(&self, number: i32) -> i32 { // write code here } }
2
2
7
21