{"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":"MD","content":"写完文案的 WNJXYK 又被要求统计文章中共包含多少种关键词。可是光是写完文章,WNJXYK 就已经精疲力竭了。所以,他想把这个统计出现关键词数量的任务交给你。"}},{"title":"Input","value":{"format":"MD","content":"第一行是一个正整数 T,表示数据组数。\n\n每组测试数据中:\n第一行是一个正整数 N,表示关键词的数量(N\u003c\u003d10000)。\n接下来的每行是一个只包含小写字母的字符串,长度不超过50,表示关键词。\n最后一行为文章字符串,长度不超过 1000000。"}},{"title":"Output","value":{"format":"MD","content":"每组数据输出一行,包含一个整数,表示文章中包含关键词的数量。"}},{"title":"Sample Input","value":{"format":"MD","content":"\u003cpre\u003e1\n5\nshe\nhe\nsay\nshr\nher\nyasherhshe\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"MD","content":"\u003cpre\u003e3\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"MD","content":"yasherhshe 中,出现了关键词:she、he、her。"}}]}