Skip to content
Onsite

Either Pair Sum Exceeds a Number

EasyP3Coding

Return true if one + two is greater than five, or three + four is greater than five. Return false if neither pair sum exceeds five.

Example 1

Input
one = 3, two = 3, three = 1, four = 1, five = 5
Output
true

Example 2

Input
one = 1, two = 1, three = 3, four = 3, five = 5
Output
true

Example 3

Input
one = 1, two = 1, three = 1, four = 1, five = 5
Output
false

Constraints

  • -10^9 <= each value <= 10^9

Hints

Run checks the 3 visible tests, Submit all 8.