{"problem":{"name":"God Sequence","description":{"content":"A sequence of length $A + B$, $E = (E_1, E_2, \\dots, E_{A+B})$, that satisfies all of the conditions below is said to be a _god_ sequence. *   $E_1 + E_2 + \\cdots + E_{A+B} = 0$ holds. *   There are ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"arc117_a"},"statements":[{"statement_type":"Markdown","content":"A sequence of length $A + B$, $E = (E_1, E_2, \\dots, E_{A+B})$, that satisfies all of the conditions below is said to be a _god_ sequence.\n\n*   $E_1 + E_2 + \\cdots + E_{A+B} = 0$ holds.\n*   There are exactly $A$ positive integers among $E_1, E_2, \\dots, E_{A+B}$.\n*   There are exactly $B$ negative integers among $E_1, E_2, \\dots, E_{A+B}$.\n*   $E_1, E_2, \\dots, E_{A+B}$ are all distinct.\n*   $-10^{9} \\leq E_i \\leq 10^9, E_i \\neq 0$ holds for every $i$ $(1 \\leq i \\leq A+B)$.\n\nConstruct one god sequence.\nWe can prove that at least one god sequence exists under Constraints of this problem.\n\n## Constraints\n\n*   $1 \\leq A \\leq 1000$\n*   $1 \\leq B \\leq 1000$\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$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"arc117_a","tags":[],"sample_group":[["1 1","1001 -1001\n\nA sequence $(1001, -1001)$ contains $A=1$ positive integer and $B=1$ negative integer totaling $1001+(-1001)=0$.\nIt also satisfies the other conditions and thus is a god sequence."],["1 4","\\-8 -6 -9 120 -97\n\nA sequence $(-8, -6, -9, 120, -97)$ contains $A=1$ positive integer and $B=4$ negative integers totaling $(-8)+(-6)+(-9)+120+(-97)=0$.\nIt also satisfies the other conditions and thus is a god sequence."],["7 5","323 -320 411 206 -259 298 -177 -564 167 392 -628 151"]],"created_at":"2026-03-03 11:01:14"}}