mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
28 lines
412 B
Python
28 lines
412 B
Python
def problem_p02553(input_data):
|
|
import numpy as np
|
|
|
|
a, b, c, d = list(map(int, input_data.split()))
|
|
|
|
hoge = []
|
|
|
|
hoge.append(a * c)
|
|
|
|
hoge.append(a * d)
|
|
|
|
hoge.append(b * c)
|
|
|
|
hoge.append(b * d)
|
|
|
|
if max(hoge) < 0:
|
|
|
|
if np.sign(a) != np.sign(b) or np.sign(c) != np.sign(d):
|
|
|
|
return 0
|
|
|
|
else:
|
|
|
|
return max(hoge)
|
|
|
|
else:
|
|
|
|
return max(hoge)
|