Compare Sums of Two Groups
EasyP3Coding
Return true if a + b + c is strictly greater than d + e, otherwise false.
Example 1
- Input
- a = 3, b = 3, c = 3, d = 4, e = 4
- Output
- true
Example 2
- Input
- a = 1, b = 1, c = 1, d = 2, e = 1
- Output
- false
Example 3
- Input
- a = 1, b = 1, c = 1, d = 1, e = 2
- Output
- false
Constraints
- -10^9 <= each value <= 10^9
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 8. ⌘Enter runs, ⌘⇧Enter submits.