{"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":"HTML","content":"zzy最近迷上了颜文字,他会想尽一切办法找到更多的QAQ。\u003cbr\u003e\u003cbr\u003e\n有一天他得到一串字符,他想知道一共可以找到多少个QAQ。这三个字符可以不连续。\n\u003ccenter\u003e\u003cimg class\u003d\"tex-graphics\" height\u003d\"259px\" src\u003d\"CDN_BASE_URL/31d685c32dbc614f3f8e1cbdff11eb08?v\u003d1663662111\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\" width\u003d\"341px\"\u003e \u003cspan class\u003d\"tex-font-size-tiny\"\u003eillustration by 猫屋 https://twitter.com/nekoyaliu\u003c/span\u003e\n\u003c/center\u003e"}},{"title":"Input","value":{"format":"HTML","content":"一个由大写英文字母构成的字符串,长度不超过100。"}},{"title":"Output","value":{"format":"HTML","content":"QAQ这个萌萌的表情的个数。"}},{"title":"Example","value":{"format":"HTML","content":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e\u003cdiv class\u003d\"sample-tests\"\u003e\n \u003cdiv class\u003d\"section-title\"/div\u003e\n \u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003eQAQAQYSYIOIWIN\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e4\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003eQAQQQZZYNOIWIN\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e3\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"解释","value":{"format":"HTML","content":"\u003cp\u003eIn the first example there are \u003cspan class\u003d\"tex-span\"\u003e4\u003c/span\u003e subsequences \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eQAQ\u003c/span\u003e\": \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e\u003cspan class\u003d\"tex-font-style-bf\"\u003eQAQ\u003c/span\u003eAQYSYIOIWIN\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e\u003cspan class\u003d\"tex-font-style-bf\"\u003eQA\u003c/span\u003eQA\u003cspan class\u003d\"tex-font-style-bf\"\u003eQ\u003c/span\u003eYSYIOIWIN\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e\u003cspan class\u003d\"tex-font-style-bf\"\u003eQ\u003c/span\u003eAQ\u003cspan class\u003d\"tex-font-style-bf\"\u003eAQ\u003c/span\u003eYSYIOIWIN\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eQA\u003cspan class\u003d\"tex-font-style-bf\"\u003eQAQ\u003c/span\u003eYSYIOIWIN\u003c/span\u003e\".\u003c/p\u003e"}}]}