- Joined
- Dec 7, 2021
- Messages
- 2
- Reaction score
- 0
In this challenge, you are required to calculate and print the sum of the 5 integers, keeping in mind that some of those integers may be quite large.
Input Format
You will take 5 different inputs on different lines and then store them in 5 different variables.
Output Format
Print the integer sum of all 5 variables.
Constraints
0 ≤ input numbers ≤ 1010
Sample Input
1000000001
1000000002
1000000003
1000000004
1000000005
Output
5000000015
C++ by the way.
Ok that's the question. It's pretty basic and I can do that. Just need help understanding constraints. The professor never talked about them at all. I get that your supposed have a minimum and maximum for input values (Am I right?) but how do you actually go about implementing that?
Pls help!
Input Format
You will take 5 different inputs on different lines and then store them in 5 different variables.
Output Format
Print the integer sum of all 5 variables.
Constraints
0 ≤ input numbers ≤ 1010
Sample Input
1000000001
1000000002
1000000003
1000000004
1000000005
Output
5000000015
C++ by the way.
Ok that's the question. It's pretty basic and I can do that. Just need help understanding constraints. The professor never talked about them at all. I get that your supposed have a minimum and maximum for input values (Am I right?) but how do you actually go about implementing that?
Pls help!