Sum of Two Numbers
Easy
math
basic
Sum of Two Numbers
Given two integers, return their sum.
Example 1
Input: a = 2, b = 3
Output: 5
Example 2
Input: a = -1, b = 5
Output: 4
Constraints
- -1000 ≤ a, b ≤ 1000
示例测试用例
示例 1
输入:
2 3
预期输出:
5
说明:
2 + 3 = 5
示例 2
输入:
-1 5
预期输出:
4
说明:
-1 + 5 = 4
快捷键:
- • Ctrl/Cmd + Enter 提交
📈 统计
提交次数
0
通过次数
0