100 atcoder#ABC178B. [ABC178B] Product Max
[ABC178B] Product Max
Score : points
Problem Statement
Given are integers and . If and are integers and and hold, what is the maximum possible value of ?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
1 2 1 1
2
If and then . If and then . Therefore, the answer is .
3 5 -4 -2
-6
The answer can be negative.
-1000000000 0 -1000000000 0
1000000000000000000