{"problem":{"name":"110. Pyramid","description":{"content":"Much like the previous question, you are going to be making some ASCII art. In this question your job is to make a pyramid given a number that represents the base of the pyramid. Each layer going up f","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269110"},"statements":[{"statement_type":"Markdown","content":"Much like the previous question, you are going to be making some ASCII art. In this question your job is to make a pyramid given a number that represents the base of the pyramid. Each layer going up from the base should be 2 less in length than the previous layer. The pyramid is complete when the length of the top layer is either 1 or 2.\n\nA single number representing the base of the pyramid.\n\nPrint the pyramid using \"X\"'s \n\nDon't forget to add spacing on the left side so that it doesn't end up looking like a right triangle.\n\n## Input\n\nA single number representing the base of the pyramid.\n\n## Output\n\nPrint the pyramid using \"X\"'s \n\n[samples]\n\n## Note\n\nDon't forget to add spacing on the left side so that it doesn't end up looking like a right triangle.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ denote the base width of the pyramid.  \n\n**Constraints**  \n$ n \\geq 1 $, and $ n $ is odd or even; the pyramid terminates when the top layer has width 1 or 2.  \n\n**Objective**  \nConstruct a pyramid with layers $ k = 0, 1, \\dots, m-1 $, where:  \n- Layer $ k $ has width $ w_k = n - 2k $,  \n- The pyramid stops when $ w_k \\in \\{1, 2\\} $,  \n- Each layer is centered by prepending $ \\left\\lfloor \\frac{n - w_k}{2} \\right\\rfloor $ spaces,  \n- Each layer is composed of $ w_k $ characters 'X'.  \n\nOutput the pyramid as a sequence of strings, one per layer, from bottom to top.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269110","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}