A - Range Product
Editorial
/


Time Limit: 2 sec / Memory Limit: 256 MB
問題文
整数 , () が与えられます。 ,,, すべての積が、正か、負か、 かを判定してください。
制約
- , は整数である。
部分点
- 点分のデータセットでは、 が成り立つ。
入力
入力は以下の形式で標準入力から与えられる。
出力
,,, すべての積が、正ならば Positive
を、負ならば Negative
を、 ならば Zero
を出力せよ。
入力例1Copy
Copy
1 3
出力例1Copy
Copy
Positive
は正です。
入力例2Copy
Copy
-3 -1
出力例2Copy
Copy
Negative
は負です。
入力例3Copy
Copy
-1 1
出力例3Copy
Copy
Zero
です。
Problem Statement
You are given two integers and (). Determine if the product of the integers , , , is positive, negative or zero.
Constraints
- and are integers.
Partial Score
- In test cases worth points, .
Input
The input is given from Standard Input in the following format:
Output
If the product is positive, print Positive
. If it is negative, print Negative
. If it is zero, print Zero
.
Sample Input 1Copy
Copy
1 3
Sample Output 1Copy
Copy
Positive
is positive.
Sample Input 2Copy
Copy
-3 -1
Sample Output 2Copy
Copy
Negative
is negative.
Sample Input 3Copy
Copy
-1 1
Sample Output 3Copy
Copy
Zero
.