{"problem":{"name":"Product Max","description":{"content":"Given are integers $a,b,c$ and $d$. If $x$ and $y$ are integers and $a \\leq x \\leq b$ and $c\\leq y \\leq d$ hold, what is the maximum possible value of $x \\times y$?","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc178_b"},"statements":[{"statement_type":"Markdown","content":"Given are integers $a,b,c$ and $d$. If $x$ and $y$ are integers and $a \\leq x \\leq b$ and $c\\leq y \\leq d$ hold, what is the maximum possible value of $x \\times y$?\n\n## Constraints\n\n*   $-10^9 \\leq a \\leq b \\leq 10^9$\n*   $-10^9 \\leq c \\leq d \\leq 10^9$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$a$ $b$ $c$ $d$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc178_b","tags":[],"sample_group":[["1 2 1 1","2\n\nIf $x = 1$ and $y = 1$ then $x \\times y = 1$. If $x = 2$ and $y = 1$ then $x \\times y = 2$. Therefore, the answer is $2$."],["3 5 -4 -2","\\-6\n\nThe answer can be negative."],["\\-1000000000 0 -1000000000 0","1000000000000000000"]],"created_at":"2026-03-03 11:01:14"}}