{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cp\u003e You are an architect now; you work for a firm as a head architect. People find you smart and brilliant. You have already showed your talent in some sources. That\u0027s why your popularity is growing day by day. And of course who doesn\u0027t enjoy such popularity!\u003c/p\u003e \n\u003cp\u003e Your firm has recently got a job. The job is quite simple. You have to build a museum, actually a \u0027Triangular\u0026nbsp;Museum\u0027. The shape of the museum will be triangular and the rooms inside it will be triangular, too. And the overall building process is given below:\u003cbr /\u003e You will be given two numbers\u0026nbsp;\u003cstrong\u003eM\u003c/strong\u003e\u0026nbsp;and\u0026nbsp;\u003cstrong\u003eN\u003c/strong\u003e.\u0026nbsp;\u003cstrong\u003eN\u003c/strong\u003e\u0026nbsp;denotes the number of levels and\u0026nbsp;\u003cstrong\u003eM\u003c/strong\u003e\u0026nbsp;denotes the size. That means you have to build a museum which should have\u0026nbsp;\u003cstrong\u003eN\u003c/strong\u003e\u0026nbsp;levels, the first level will contain one triangular room.\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;Now, for building a triangular room of size\u0026nbsp;\u003cstrong\u003eM\u003c/strong\u003e, first you have to put\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003cstrong\u003e/\\\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; (forward slash and a backward slash)\u003c/strong\u003e\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;Then for each\u0026nbsp;\u003cstrong\u003ei-th\u003c/strong\u003e\u0026nbsp;row (\u003cstrong\u003ei \u003d 2 to M-1\u003c/strong\u003e), you have to put\u0026nbsp; a\u0026nbsp;\u003cstrong\u003e\u0027/\u0027\u003c/strong\u003e\u0026nbsp;(forward slash) and\u0026nbsp;\u003cstrong\u003e2*(i-1)\u003c/strong\u003e\u0026nbsp;spaces and after that a\u0026nbsp;\u003cstrong\u003e\u0027\\\u0027\u003c/strong\u003e\u0026nbsp;(backward slash). The\u0026nbsp;\u003cstrong\u003eM-th\u003c/strong\u003e\u0026nbsp;row will contain a\u0026nbsp;\u003cstrong\u003e\u0027/\u0027\u003c/strong\u003e,\u0026nbsp;\u0026nbsp;\u003cstrong\u003e2\u003c/strong\u003e\u003cstrong\u003e*(M-1)\u003c/strong\u003e\u003cstrong\u003e\u0027_\u0027\u003c/strong\u003e\u0026nbsp;(underscore) and a\u0026nbsp;\u003cstrong\u003e\u0027\\\u0027\u003c/strong\u003e. And add spaces to the previous parts so that the overall shape looks fully triangular. Suppose,\u0026nbsp;\u003cstrong\u003eM \u003d 4\u003c/strong\u003e. Then a room will be like:\u003c/p\u003e \n\u003cp\u003e \u003cstrong\u003e.../\\\u003cbr /\u003e ../..\\\u003cbr /\u003e ./....\\\u003cbr /\u003e /______\\\u003c/strong\u003e\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;(Here spaces are shown as dots)\u0026nbsp;\u003c/p\u003e \n\u003cp\u003e Now, for building all the\u0026nbsp;\u003cstrong\u003eN\u003c/strong\u003e\u0026nbsp;levels, for each\u0026nbsp;\u003cstrong\u003ei-th\u003c/strong\u003e\u0026nbsp;level (\u003cstrong\u003ei \u003d 2 to N\u003c/strong\u003e), you have to build\u0026nbsp;\u003cstrong\u003ei\u003c/strong\u003etriangular rooms, each will start from the base vertices of the previous triangular rooms. (Note that the first level will contain one room only). If\u0026nbsp;\u003cstrong\u003eN \u003d 1\u003c/strong\u003e\u0026nbsp;and\u0026nbsp;\u003cstrong\u003eM \u003d 2\u003c/strong\u003e. Then the museum will be like:\u0026nbsp;\u003c/p\u003e \n\u003cp\u003e \u003cstrong\u003e./\\\u003cbr /\u003e /__\\\u003c/strong\u003e\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;\u003c/p\u003e \n\u003cp\u003e \u0026nbsp;If\u0026nbsp;\u003cstrong\u003eN \u003d 2\u003c/strong\u003e\u0026nbsp;and\u0026nbsp;\u003cstrong\u003eM \u003d 2\u003c/strong\u003e. Then the museum will be like: (Two triangular rooms added)\u0026nbsp;\u003c/p\u003e \n\u003cp\u003e \u003cstrong\u003e.../\\\u003cbr /\u003e ../__\\\u003cbr /\u003e \u0026nbsp;/\\../\\\u003cbr /\u003e /__\\/__\\\u003c/strong\u003e\u003cbr /\u003e \u003cbr /\u003e If\u0026nbsp;\u003cstrong\u003eN \u003d 3\u003c/strong\u003e\u0026nbsp;and\u0026nbsp;\u003cstrong\u003eM \u003d 2\u003c/strong\u003e. Then the museum will be like: (Three triangular rooms added)\u003cbr /\u003e \u003cstrong\u003e...../\\\u003cbr /\u003e ..../__\\\u003cbr /\u003e .../\\../\\\u003cbr /\u003e ../__\\/__\\\u003cbr /\u003e ./\\../\\../\\\u003cbr /\u003e /__\\/__\\/__\\\u003c/strong\u003e\u003c/p\u003e \n\u003cp\u003e Now given\u0026nbsp;\u003cstrong\u003eM\u003c/strong\u003e\u0026nbsp;and\u0026nbsp;\u003cstrong\u003eN\u003c/strong\u003e, your job is to build the triangular museum.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e \u003cb\u003eInput\u003c/b\u003e\u003cbr /\u003e Input contains several sets of inputs. Each set contains two integers\u0026nbsp;\u003cb\u003eM (1 \u0026lt; M \u0026lt;\u003d 100)\u003c/b\u003e\u0026nbsp;and\u0026nbsp;\u003cb\u003eN (1 \u0026lt;\u003d N \u0026lt;\u003d 100)\u003c/b\u003e. A line containing two zeroes denotes the end of input.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e \u003cb\u003eOutput\u003c/b\u003e\u003cbr /\u003e For each set of input.\u0026nbsp;First print\u0026nbsp;\u003cb\u003e\u0027Triangular\u0026nbsp;Museum\u0026nbsp;x\u0027\u003c/b\u003e\u0026nbsp;(where\u0026nbsp;\u003cb\u003ex\u003c/b\u003e\u0026nbsp;denotes the set number starting from\u0026nbsp;\u003cb\u003e1\u003c/b\u003e) in a single line.\u0026nbsp;Then draw the triangular museum according to the description. Finally print a blank line.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cp\u003e \u003cb\u003e2 1\u003cbr /\u003e 2 2\u003cbr /\u003e 3 3\u003cbr /\u003e 0 0\u003c/b\u003e\u003cbr /\u003e \u0026nbsp;\u003c/p\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cp\u003e \u003cstrong\u003eTriangular Museum 1\u0026nbsp;\u003cbr /\u003e \u0026nbsp;/\\\u003cbr /\u003e /__\\\u003c/strong\u003e\u003c/p\u003e \n\u003cp\u003e \u003cstrong\u003eTriangular Museum 2\u003cbr /\u003e \u0026nbsp;\u0026nbsp; /\\\u003cbr /\u003e \u0026nbsp; /__\\\u003cbr /\u003e \u0026nbsp;/\\\u0026nbsp; /\\\u003cbr /\u003e /__\\/__\\\u003c/strong\u003e\u003c/p\u003e \n\u003cp\u003e \u003cstrong\u003eTriangular Museum 3\u003cbr /\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; /\\\u003cbr /\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; /\u0026nbsp; \\\u003cbr /\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; /____\\\u003cbr /\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; /\\\u0026nbsp;\u0026nbsp;\u0026nbsp; /\\\u003cbr /\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp; /\u0026nbsp; \\\u0026nbsp; /\u0026nbsp; \\\u003cbr /\u003e \u0026nbsp;\u0026nbsp; /____\\/____\\\u003cbr /\u003e \u0026nbsp; /\\\u0026nbsp;\u0026nbsp;\u0026nbsp; /\\\u0026nbsp;\u0026nbsp;\u0026nbsp; /\\\u003cbr /\u003e \u0026nbsp;/\u0026nbsp; \\\u0026nbsp; /\u0026nbsp; \\\u0026nbsp; /\u0026nbsp; \\\u003cbr /\u003e /____\\/____\\/____\\\u003cbr /\u003e \u003cbr /\u003e Output format is not correct here,\u003cbr /\u003e Goto this link for output format purpose:\u003c/strong\u003e\u003c/p\u003e \n\u003cp\u003e http://uva.onlinejudge.org/index.php?option\u003donlinejudge\u0026amp;page\u003dshow_problem\u0026amp;problem\u003d2477\u003cbr /\u003e \u0026nbsp;\u003c/p\u003e"}}]}