{"problem":{"name":"90 and 270","description":{"content":"#nck { width: 30px; height: auto; }Construct an $N$\\-gon that satisfies the following conditions: *   The polygon is simple (see notes for the definition). *   Each edge of the polygon is parallel to","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"cf16_exhibition_final_i"},"statements":[{"statement_type":"Markdown","content":"#nck { width: 30px; height: auto; }Construct an $N$\\-gon that satisfies the following conditions:\n\n*   The polygon is simple (see notes for the definition).\n*   Each edge of the polygon is parallel to one of the coordinate axes.\n*   Each coordinate is an integer between $0$ and $10^9$, inclusive.\n*   The vertices are numbered $1$ through $N$ in counter-clockwise order.\n*   The internal angle at the $i$\\-th vertex is exactly $a_i$ degrees.\n\nIn case there are multiple possible answers, you can output any.\n\n## Constraints\n\n*   $3 ≤ N ≤ 1000$\n*   $a_i$ is either $90$ or $270$.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$N$\n$a_1$\n:\n$a_N$\n\n[samples]\n\n## Notes\n\nA polygon is called simple if each edge has a positive length, and no two edges have a common point (except for adjacent edges touching at a vertex).","is_translate":false,"language":"English"}],"meta":{"iden":"cf16_exhibition_final_i","tags":[],"sample_group":[["8\n90\n90\n270\n90\n90\n90\n270\n90","0 0\n2 0\n2 1\n3 1\n3 2\n1 2\n1 1\n0 1"],["3\n90\n90\n90","\\-1"]],"created_at":"2026-03-03 11:01:14"}}