#14. 函数题 (Leetcode 风格)

函数题 (Leetcode 风格)

Standard Answer:

Python:

def ans(a, b):
  return a + b

Java:

class Solution {
    public int add(int a, int b) {
        return a+b;
    }
}

C++

class Solution {
public:
    int add(int a, int b) {
        return a + b;
    }
};