AtCoder Grand Contest 002
翻译中…
Problem Statement
翻译中…
You are given two integers $a$ and $b$ ($a≤b$). Determine if the product of the integers $a$, $a+1$, $…$, $b$ is positive, negative or zero.
翻译中…
Constraints
翻译中…
$a$and$b$are integers.$-10^9≤a≤b≤10^9$
翻译中…
Partial Score
翻译中…
- In test cases worth
$100$points,$-10≤a≤b≤10$.
翻译中…
Input
翻译中…
The input is given from Standard Input in the following format:
翻译中…
a b
翻译中…
Output
翻译中…
If the product is positive, print Positive. If it is negative, print Negative. If it is zero, print Zero.
翻译中…
样例
Input #1
1 3
Output #1
Positive
$1×2×3=6$ is positive.
Input #2
-3 -1
Output #2
Negative
$(-3)×(-2)×(-1)=-6$ is negative.
Input #3
-1 1
Output #3
Zero
$(-1)×0×1=0$.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。