Two independent diagnostic sensors on a research drone each report a signed integer charge delta after a test pulse: a positive value means the battery pack gained charge, a negative value means it lost charge, and zero means no net change. Given both readings, compute the single combined delta that summarizes the pulse's total effect on the drone's power reserve.
A single line containing two integers, num1 and num2, separated by a space.
Print a single integer: the sum num1 + num2.
Example 1
Input
4 5
Expected
9
Explanation
Both readings are gains, so the combined delta is simply their sum: 4 + 5 = 9.
Example 2
Input
-15 7
Expected
-8
Explanation
The first sensor reports a loss of 15 and the second reports a gain of 7. The gain partially offsets the loss: -15 + 7 = -8.
Ready to solve this?
Sign in to open the editor, run your code against the sample tests, and submit against the full test suite.
Sign in to solve →