Find file History
Latest commit 30923d1 Jun 24, 2016 @cuklev cuklev New sample tests format
Permalink
..
Failed to load latest commit information.
tests Add sample tests Jun 14, 2016
README.md New sample tests format Jun 24, 2016

README.md

Multiplication Sign

Description

Write a script that shows the sign (+, - or 0) of the product of three real numbers, without calculating it. Use a sequence of if operators.

Input

  • The input will consist of an array containing three values - a, b and c represented as strings

Output

  • The output should be a single line containing +, - or 0

Constraints

  • Time limit: 0.2s
  • Memory limit: 16MB

Sample tests

Sample test 1

Input

['5', '2', '2']

Output

+

Sample test 2

Input

['-2', '-2', '1']

Output

+

Sample test 3

Input

['-2', '4', '3']

Output

-

Sample test 4

Input

['0', '-2.5', '4']

Output

0

Sample test 5

Input

['-1', '-0.5', '-5.1']

Output

-