{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\tIf you ever tried to read a html document on a Macintosh, you know how hard it is if no Netscape is installed.\u003cbr /\u003e\r\n\tNow, who can forget to install a HTML browser? This is very easy because most of the times you don\u0026#39;t need one on a MAC because there is a \u003cspan data-scayt_word\u003d\"Acrobate\" data-scaytid\u003d\"65\"\u003eAcrobate\u003c/span\u003e Reader which is native to MAC. But if you ever need one, what do you do?\u003cbr /\u003e\r\n\tYour task is to write a small html-browser. It should only display the content of the input-file and knows only the html commands (tags) \u0026lt;br\u0026gt; which is a linebreak and \u0026lt;hr\u0026gt; which is a horizontal ruler. Then you should treat all tabulators, spaces and newlines as one space and display the resulting text with no more than 80 characters on a line.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\tThe input consists of a text you should display. This text consists of words and HTML tags separated by one or more spaces, tabulators or newlines.\u003cbr /\u003e\r\n\tA word is a sequence of letters, numbers and punctuation. For example, \u0026quot;\u003cspan data-scayt_word\u003d\"abc\" data-scaytid\u003d\"131\"\u003eabc\u003c/span\u003e,123\u0026quot; is one word, but \u0026quot;\u003cspan data-scayt_word\u003d\"abc\" data-scaytid\u003d\"132\"\u003eabc\u003c/span\u003e, 123\u0026quot; are two words, namely \u0026quot;\u003cspan data-scayt_word\u003d\"abc\" data-scaytid\u003d\"133\"\u003eabc\u003c/span\u003e,\u0026quot; and \u0026quot;123\u0026quot;. A word is always shorter than 81 characters and does not contain any \u0026#39;\u0026lt;\u0026#39; or \u0026#39;\u0026gt;\u0026#39;. All HTML tags are either \u0026lt;br\u0026gt; or \u0026lt;hr\u0026gt;.\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\tYou should display the the resulting text using this rules:\u003cbr /\u003e\r\n\t\u0026nbsp;\u0026nbsp;. If you read a word in the input and the resulting line does not get longer than 80 chars, print it, else print it on a new line.\u003cbr /\u003e\r\n\t\u0026nbsp;\u0026nbsp;. If you read a \u0026lt;br\u0026gt; in the input, start a new line.\u003cbr /\u003e\r\n\t\u0026nbsp;\u0026nbsp;. If you read a \u0026lt;hr\u0026gt; in the input, start a new line unless you already are at the beginning of a line, display 80 characters of \u0026#39;-\u0026#39; and start a new line (again).\u003cbr /\u003e\r\n\tThe last line is ended by a newline character.\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\t\u003cpre\u003e\r\n\t\u003c/pre\u003e\r\n\t\u003cdiv style\u003d\"font-family:Courier New,Courier,monospace;\"\u003e\r\n\t\t\u003cpre\u003e\r\n\t\tHallo, dies \u003cspan data-scayt_word\u003d\"ist\" data-scaytid\u003d\"1\"\u003eist\u003c/span\u003e \u003cspan data-scayt_word\u003d\"eine\" data-scaytid\u003d\"2\"\u003eeine\u003c/span\u003e \r\n\u003cspan data-scayt_word\u003d\"ziemlich\" data-scaytid\u003d\"3\"\u003eziemlich\u003c/span\u003e \u003cspan data-scayt_word\u003d\"lange\" data-scaytid\u003d\"4\"\u003elange\u003c/span\u003e \u003cspan data-scayt_word\u003d\"Zeile\" data-scaytid\u003d\"5\"\u003eZeile\u003c/span\u003e, die in Html\r\n\u003cspan data-scayt_word\u003d\"aber\" data-scaytid\u003d\"6\"\u003eaber\u003c/span\u003e \u003cspan data-scayt_word\u003d\"nicht\" data-scaytid\u003d\"7\"\u003enicht\u003c/span\u003e \u003cspan data-scayt_word\u003d\"umgebrochen\" data-scaytid\u003d\"8\"\u003eumgebrochen\u003c/span\u003e \u003cspan data-scayt_word\u003d\"wird\" data-scaytid\u003d\"9\"\u003ewird\u003c/span\u003e.\r\n\u0026lt;br\u0026gt;\r\nZwei \u0026lt;br\u0026gt; \u0026lt;br\u0026gt; produzieren zwei Newlines. \r\nEs gibt auch noch das tag \u0026lt;hr\u0026gt; was einen Trenner darstellt.\r\nZwei \u0026lt;hr\u0026gt; \u0026lt;hr\u0026gt; produzieren zwei Horizontal Rulers.\r\nAchtung mehrere Leerzeichen irritieren\r\n\r\nHtml genauso wenig wie\r\n\r\n\r\nmehrere Leerzeilen.\u003c/pre\u003e\r\n\t\u003c/div\u003e\r\n\u003c/div\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\r\n\t\u003cpre\u003e\r\n\t\u003c/pre\u003e\r\n\t\u003cdiv style\u003d\"font-family:Courier New,Courier,monospace;\"\u003e\r\n\t\t\u003cpre\u003e\r\n\t\tHallo, dies \u003cspan data-scayt_word\u003d\"ist\" data-scaytid\u003d\"33\"\u003eist\u003c/span\u003e \u003cspan data-scayt_word\u003d\"eine\" data-scaytid\u003d\"34\"\u003eeine\u003c/span\u003e \u003cspan data-scayt_word\u003d\"ziemlich\" data-scaytid\u003d\"35\"\u003eziemlich\u003c/span\u003e \u003cspan data-scayt_word\u003d\"lange\" data-scaytid\u003d\"36\"\u003elange\u003c/span\u003e \u003cspan data-scayt_word\u003d\"Zeile\" data-scaytid\u003d\"37\"\u003eZeile\u003c/span\u003e, die in Html \u003cspan data-scayt_word\u003d\"aber\" data-scaytid\u003d\"38\"\u003eaber\u003c/span\u003e \u003cspan data-scayt_word\u003d\"nicht\" data-scaytid\u003d\"39\"\u003enicht\u003c/span\u003e \u003cspan data-scayt_word\u003d\"umgebrochen\" data-scaytid\u003d\"40\"\u003eumgebrochen\u003c/span\u003e\r\n\u003cspan data-scayt_word\u003d\"wird\" data-scaytid\u003d\"41\"\u003ewird\u003c/span\u003e.\r\n\u003cspan data-scayt_word\u003d\"Zwei\" data-scaytid\u003d\"42\"\u003eZwei\u003c/span\u003e\r\n\r\n\u003cspan data-scayt_word\u003d\"produzieren\" data-scaytid\u003d\"44\"\u003eproduzieren\u003c/span\u003e \u003cspan data-scayt_word\u003d\"zwei\" data-scaytid\u003d\"46\"\u003ezwei\u003c/span\u003e Newlines. \u003cspan data-scayt_word\u003d\"Es\" data-scaytid\u003d\"48\"\u003eEs\u003c/span\u003e \u003cspan data-scayt_word\u003d\"gibt\" data-scaytid\u003d\"49\"\u003egibt\u003c/span\u003e \u003cspan data-scayt_word\u003d\"auch\" data-scaytid\u003d\"50\"\u003eauch\u003c/span\u003e \u003cspan data-scayt_word\u003d\"noch\" data-scaytid\u003d\"51\"\u003enoch\u003c/span\u003e \u003cspan data-scayt_word\u003d\"das\" data-scaytid\u003d\"52\"\u003edas\u003c/span\u003e tag\r\n--------------------------------------------------------------------------------\r\nwas \u003cspan data-scayt_word\u003d\"einen\" data-scaytid\u003d\"53\"\u003eeinen\u003c/span\u003e \u003cspan data-scayt_word\u003d\"Trenner\" data-scaytid\u003d\"54\"\u003eTrenner\u003c/span\u003e \u003cspan data-scayt_word\u003d\"darstellt\" data-scaytid\u003d\"55\"\u003edarstellt\u003c/span\u003e. \u003cspan data-scayt_word\u003d\"Zwei\" data-scaytid\u003d\"43\"\u003eZwei\u003c/span\u003e\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\n\u003cspan data-scayt_word\u003d\"produzieren\" data-scaytid\u003d\"45\"\u003eproduzieren\u003c/span\u003e \u003cspan data-scayt_word\u003d\"zwei\" data-scaytid\u003d\"47\"\u003ezwei\u003c/span\u003e Horizontal Rulers. \u003cspan data-scayt_word\u003d\"Achtung\" data-scaytid\u003d\"56\"\u003eAchtung\u003c/span\u003e \u003cspan data-scayt_word\u003d\"mehrere\" data-scaytid\u003d\"57\"\u003emehrere\u003c/span\u003e \u003cspan data-scayt_word\u003d\"Leerzeichen\" data-scaytid\u003d\"59\"\u003eLeerzeichen\u003c/span\u003e \u003cspan data-scayt_word\u003d\"irritieren\" data-scaytid\u003d\"60\"\u003eirritieren\u003c/span\u003e Html\r\n\u003cspan data-scayt_word\u003d\"genauso\" data-scaytid\u003d\"61\"\u003egenauso\u003c/span\u003e \u003cspan data-scayt_word\u003d\"wenig\" data-scaytid\u003d\"62\"\u003ewenig\u003c/span\u003e \u003cspan data-scayt_word\u003d\"wie\" data-scaytid\u003d\"63\"\u003ewie\u003c/span\u003e \u003cspan data-scayt_word\u003d\"mehrere\" data-scaytid\u003d\"58\"\u003emehrere\u003c/span\u003e \u003cspan data-scayt_word\u003d\"Leerzeilen\" data-scaytid\u003d\"64\"\u003eLeerzeilen\u003c/span\u003e.\u003c/pre\u003e\r\n\t\u003c/div\u003e\r\n\u003c/div\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u003cspan data-scayt_word\u003d\"一道纯模拟的水题、注意题目给的几个条件、按照题意转化就行了\" data-scaytid\u003d\"142\"\u003e一道纯模拟的水题、注意题目给的几个条件、按照题意转化就行了\u003c/span\u003e\u003c/p\u003e"}}]}