{"problem":{"name":"Difference Max","description":{"content":"Given are integers $a$, $b$, $c$, and $d$.   We will choose integers $x$ and $y$ such that $a ≤ x ≤ b$ and $c ≤ y ≤ d$. Find the maximum possible value of $x - y$ here.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc196_a"},"statements":[{"statement_type":"Markdown","content":"Given are integers $a$, $b$, $c$, and $d$.  \nWe will choose integers $x$ and $y$ such that $a ≤ x ≤ b$ and $c ≤ y ≤ d$. Find the maximum possible value of $x - y$ here.\n\n## Constraints\n\n*   All values in input are integers.\n*   $-100 ≤ a ≤ b ≤ 100$\n*   $-100 ≤ c ≤ d ≤ 100$\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$a$ $b$\n$c$ $d$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc196_a","tags":[],"sample_group":[["0 10\n0 10","10\n\n$(x, y) = (10, 0)$ achieves the maximum value $x - y = 10$."],["\\-100 -100\n100 100","\\-200"],["\\-100 100\n-100 100","200"]],"created_at":"2026-03-03 11:01:13"}}