Skip to content
Onsite

Compare Seven Numbers

EasyP3Coding

Return true if (a + b) * c is strictly greater than d + e + f + g, otherwise false.

Example 1

Input
a = 1, b = 2, c = 3, d = 1, e = 1, f = 1, g = 1
Output
true

Example 2

Input
a = 1, b = 1, c = 1, d = 1, e = 1, f = 1, g = 1
Output
false

Example 3

Input
a = 0, b = 0, c = 0, d = -1, e = 0, f = 0, g = 0
Output
true

Constraints

  • -1000 <= each value <= 1000

Hints

Run checks the 3 visible tests, Submit all 8.