⌨️
[AtCoder]ABC-178|B - Product Max
設問ページ
提出結果
def getIntMap():
return map(int, input().split())
def main():
a, b, c, d = getIntMap()
print(max(max(a * c, a * d), max(b * c, b * d)))
if __name__ == "__main__":
main()
def getIntMap():
return map(int, input().split())
def main():
a, b, c, d = getIntMap()
print(max(max(a * c, a * d), max(b * c, b * d)))
if __name__ == "__main__":
main()
Discussion