给定整数 a,b,c,d。 如果 x 和 y 是整数,并且满足a≤x≤b 和 c≤y≤d,那么 x 乘以 y 的最大可能值是多少?
以标准形式进行输入。
a b c d
输出最后答案。
1 2 1 1
2
3 5 -4 -2
-6
-1000000000 0 -1000000000 0
1000000000000000000
如果x=1,y=1 那么 x × y=1 如果x=2,y=1 那么 x × y=2 2 比 1 大,因此最后输出的答案为 2 。
答案有可能为负数。
By signing up a 西蒙科教 universal account, you can submit code and join discussions in all online judging services provided by us.