Compare Two Sums
EasyP3Coding
Return true if both one + two > three and four + five > six. Otherwise return false.
Example 1
- Input
- one = 5, two = 5, three = 3, four = 6, five = 6, six = 5
- Output
- true
Example 2
- Input
- one = 5, two = 5, three = 3, four = 1, five = 1, six = 5
- Output
- false
Example 3
- Input
- one = 1, two = 1, three = 5, four = 6, five = 6, six = 5
- 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.