LintCode炼码解题笔记1.A+B问题
描述:
给出两个整数 aa 和 bb , 求他们的和并以整数(int)的形式返回。
官网上的示例输入:
a = 1
b = 2
输出:
3
解释:
a + b = 1 + 2 = 3
这个其实就直接a+b啦(哈哈)
Python语言实现:
class Solution:
"""
@param a: An integer
@param b: An integer
@return: The sum of a and b
"""
def aplusb(self, a, b):
# write your code here
return a+b