{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"MD","content":"许多现代文本编辑器会自动检查用户文本的拼写。 一些编辑甚至建议如何纠正错别字。\n\n在这个问题中你的任务是实现一个小功能来纠正一个单词中的两种类型的拼写错误。 我们假设三个相同的字母拼写错误(例如,单词“helllo”包含拼写错误)。 此外,一些相同的字母后面紧跟着另外两个相同的字母也是一个错字(例如,“helloo”和“wwaatt”字样包含拼写错误)。\n\n编写一个代码,删除单词中的最小字母数,纠正单词中描述的拼写错误。 您可以从单词的两端和中间删除字母。"}},{"title":"Input","value":{"format":"MD","content":"输入的单行包含单词s,其长度为1到200000个字符。 给定的单词s由小写英文字母组成。"}},{"title":"Output","value":{"format":"MD","content":"打印这样的单词t,它不包含问题陈述中描述的任何拼写错误,并通过删除最少数量的字母从s获得。\n\n如果有多个解决方案,请打印其中任何一个。"}},{"title":"Examples","value":{"format":"MD","content":"#### 样例1\nInput:\nhelloo\n\nOutput:\nhello\n#### 样例2\nInput:\nwoooooow \n\nOutput:\nwoow"}},{"title":"Note","value":{"format":"MD","content":"声明:对测试1的第二个有效答案是“heloo”。"}}]}