题目描述
Given two numbers A and B. Your task is to return the sum of A and B.
Example 1:
Input:
A = 1, B = 2
Output:
3
Explanation:
Addition of 1 and 2 is 3.
Example 2:
Input:
A = 10, B = 20
Output:
30
Explanation:
Addition os 10 and 20 is 30.
Your Task:
You don't need to read input or print anything. Your task is to complete the function addition() which takes two numbers A and B and returns the sum of A and B.
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
Constraints:
1 <= A, B <= 10^{18}
输入格式
见题面
输出格式
见题面
样例输入
A = 1, B = 2
样例输出
3